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.

Add vim mode metric

Joseph Lyons5f0bf5929f57
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index dd5bb7b0532..9d1a72bf019 100644
--- a/crates/editor/src/editor.rs
+++ b/crates/editor/src/editor.rs
@@ -6619,13 +6619,15 @@ impl Editor {
.as_singleton()
.and_then(|b| b.read(cx).file()),
) {
+ let settings = cx.global::<Settings>();
+
let extension = Path::new(file.file_name(cx))
.extension()
.and_then(|e| e.to_str());
project.read(cx).client().report_event(
name,
- json!({ "File Extension": extension }),
- cx.global::<Settings>().telemetry(),
+ json!({ "File Extension": extension, "Vim Mode": settings.vim_mode }),
+ settings.telemetry(),
);
}
}