Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Don't panic when multiple Zed instances are open (#10295)
Mikayla Makicf5a113751ce
diff --git a/crates/workspace/src/persistence.rs b/crates/workspace/src/persistence.rsindex 7cf764a5b40..2e66322f05b 100644--- a/crates/workspace/src/persistence.rs+++ b/crates/workspace/src/persistence.rs@@ -352,8 +352,7 @@ impl WorkspaceDb {// Clear out panes and pane_groupsconn.exec_bound(sql!(DELETE FROM pane_groups WHERE workspace_id = ?1;- DELETE FROM panes WHERE workspace_id = ?1;))?(workspace.id)- .expect("Clearing old panes");+ DELETE FROM panes WHERE workspace_id = ?1;))?(workspace.id)?;conn.exec_bound(sql!(DELETE FROM workspaces WHERE workspace_location = ? AND workspace_id != ?