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.

Mark app event as `open` if we fail to get installation_id

Joseph T. Lyonsa0dcc9618ed5
diff --git a/crates/zed/src/main.rs b/crates/zed/src/main.rs
index 992a433a749..b953a782cee 100644
--- a/crates/zed/src/main.rs
+++ b/crates/zed/src/main.rs
@@ -175,8 +175,8 @@ fn main() {
// Copy logic to zed2
let telemetry_settings = *settings::get::<TelemetrySettings>(cx);
let event_operation = match existing_installation_id_found {
- Some(true) => "open",
- _ => "first open",
+ Some(false) => "first open",
+ _ => "open",
};
client
.telemetry()
diff --git a/crates/zed2/src/main.rs b/crates/zed2/src/main.rs
index 0f6075f62ec..9e851f10080 100644
--- a/crates/zed2/src/main.rs
+++ b/crates/zed2/src/main.rs
@@ -179,8 +179,8 @@ fn main() {
client.telemetry().start(installation_id, session_id, cx);
let telemetry_settings = *client::TelemetrySettings::get_global(cx);
let event_operation = match existing_installation_id_found {
- Some(true) => "open",
- _ => "first open",
+ Some(false) => "first open",
+ _ => "open",
};
client
.telemetry()