Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
workspace: Do not panic when the database is corruped (#42186)
Lukas Wirth39fb89e03160
diff --git a/crates/workspace/src/persistence.rs b/crates/workspace/src/persistence.rsindex 1ed3d3673a7..3d7ddf5d2ce 100644--- a/crates/workspace/src/persistence.rs+++ b/crates/workspace/src/persistence.rs@@ -791,12 +791,11 @@ impl WorkspaceDb {remote_connection_id IS ?LIMIT 1})- .map(|mut prepared_statement| {+ .and_then(|mut prepared_statement| {(prepared_statement)((root_paths.serialize().paths,remote_connection_id.map(|id| id.0 as i32),))- .unwrap()}).context("No workspaces found").warn_on_err()