Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Stop sending editor events to mixpanel
Joseph Lyons70c5489c1345
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rsindex d98bd925322..f956d5725cd 100644--- a/crates/editor/src/editor.rs+++ b/crates/editor/src/editor.rs@@ -46,9 +46,9 @@ use gpui::{impl_actions,keymap_matcher::KeymapContext,platform::{CursorStyle, MouseButton},- serde_json::{self, json},- AnyElement, AnyViewHandle, AppContext, AsyncAppContext, ClipboardItem, Element, Entity,- ModelHandle, Subscription, Task, View, ViewContext, ViewHandle, WeakViewHandle, WindowContext,+ serde_json, AnyElement, AnyViewHandle, AppContext, AsyncAppContext, ClipboardItem, Element,+ Entity, ModelHandle, Subscription, Task, View, ViewContext, ViewHandle, WeakViewHandle,+ WindowContext,};use highlight_matching_bracket::refresh_matching_bracket_highlights;use hover_popover::{hide_hover, HoverState};@@ -7211,15 +7211,6 @@ impl Editor {.show_copilot_suggestions;let telemetry = project.read(cx).client().telemetry().clone();- telemetry.report_mixpanel_event(- match name {- "open" => "open editor",- "save" => "save editor",- _ => name,- },- json!({ "File Extension": file_extension, "Vim Mode": vim_mode, "In Clickhouse": true }),- telemetry_settings,- );let event = ClickhouseEvent::Editor {file_extension,vim_mode,diff --git a/crates/editor/src/editor_tests.rs b/crates/editor/src/editor_tests.rsindex 35d61bf0cf6..a9d100575f4 100644--- a/crates/editor/src/editor_tests.rs+++ b/crates/editor/src/editor_tests.rs@@ -9,7 +9,8 @@ use gpui::{executor::Deterministic,geometry::{rect::RectF, vector::vec2f},platform::{WindowBounds, WindowOptions},- serde_json, TestAppContext,+ serde_json::{self, json},+ TestAppContext,};use indoc::indoc;use language::{