Git telemetry (#26222)
Release Notes: - git: Adds telemetry to git actions
This commit is contained in:
parent
219d36f589
commit
9c054f207e
7 changed files with 25 additions and 0 deletions
|
@ -90,6 +90,14 @@ impl ProjectDiff {
|
|||
window: &mut Window,
|
||||
cx: &mut Context<Workspace>,
|
||||
) {
|
||||
telemetry::event!(
|
||||
"Git Diff Opened",
|
||||
source = if entry.is_some() {
|
||||
"Git Panel"
|
||||
} else {
|
||||
"Action"
|
||||
}
|
||||
);
|
||||
let project_diff = if let Some(existing) = workspace.item_of_type::<Self>(cx) {
|
||||
workspace.activate_item(&existing, true, true, window, cx);
|
||||
existing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue