Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Disable instance handshake in dev builds

Juliadfe4fc4d0ac4
diff --git a/crates/client/src/telemetry.rs b/crates/client/src/telemetry.rs
index e2fc8ad3ade..a3e7449cf8a 100644
--- a/crates/client/src/telemetry.rs
+++ b/crates/client/src/telemetry.rs
@@ -350,7 +350,6 @@ impl Telemetry {
milliseconds_since_first_event: self.milliseconds_since_first_event(),
};
- dbg!(telemetry_settings);
self.report_clickhouse_event(event, telemetry_settings, true)
}
diff --git a/crates/zed/src/only_instance.rs b/crates/zed/src/only_instance.rs
index 85dbd3684ac..e950392d995 100644
--- a/crates/zed/src/only_instance.rs
+++ b/crates/zed/src/only_instance.rs
@@ -39,7 +39,7 @@ pub enum IsOnlyInstance {
}
pub fn ensure_only_instance() -> IsOnlyInstance {
- if *db::ZED_STATELESS {
+ if *db::ZED_STATELESS || *util::channel::RELEASE_CHANNEL == ReleaseChannel::Dev {
return IsOnlyInstance::Yes;
}
diff --git a/crates/zed2/src/only_instance.rs b/crates/zed2/src/only_instance.rs
index 85dbd3684ac..e950392d995 100644
--- a/crates/zed2/src/only_instance.rs
+++ b/crates/zed2/src/only_instance.rs
@@ -39,7 +39,7 @@ pub enum IsOnlyInstance {
}
pub fn ensure_only_instance() -> IsOnlyInstance {
- if *db::ZED_STATELESS {
+ if *db::ZED_STATELESS || *util::channel::RELEASE_CHANNEL == ReleaseChannel::Dev {
return IsOnlyInstance::Yes;
}