Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Avoid checking for duplicate instance when local DB is disabled
Juliacaa29d57c2d8
diff --git a/crates/zed/src/only_instance.rs b/crates/zed/src/only_instance.rsindex 0450b5908ba..a8c4b30816d 100644--- a/crates/zed/src/only_instance.rs+++ b/crates/zed/src/only_instance.rs@@ -37,6 +37,10 @@ pub enum IsOnlyInstance {}pub fn ensure_only_instance() -> IsOnlyInstance {+ if *db::ZED_STATELESS {+ return IsOnlyInstance::Yes;+ }+if check_got_handshake() {return IsOnlyInstance::No;}