mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-06 02:37:21 +00:00
Add vim mode metric
This commit is contained in:
parent
209e9a59c5
commit
5f0bf5929f
1 changed files with 4 additions and 2 deletions
|
@ -6619,13 +6619,15 @@ impl Editor {
|
||||||
.as_singleton()
|
.as_singleton()
|
||||||
.and_then(|b| b.read(cx).file()),
|
.and_then(|b| b.read(cx).file()),
|
||||||
) {
|
) {
|
||||||
|
let settings = cx.global::<Settings>();
|
||||||
|
|
||||||
let extension = Path::new(file.file_name(cx))
|
let extension = Path::new(file.file_name(cx))
|
||||||
.extension()
|
.extension()
|
||||||
.and_then(|e| e.to_str());
|
.and_then(|e| e.to_str());
|
||||||
project.read(cx).client().report_event(
|
project.read(cx).client().report_event(
|
||||||
name,
|
name,
|
||||||
json!({ "File Extension": extension }),
|
json!({ "File Extension": extension, "Vim Mode": settings.vim_mode }),
|
||||||
cx.global::<Settings>().telemetry(),
|
settings.telemetry(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue