Git telemetry (#26222)

Release Notes:

- git: Adds telemetry to git actions
This commit is contained in:
Conrad Irwin 2025-03-06 10:56:28 -07:00 committed by GitHub
parent 219d36f589
commit 9c054f207e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 25 additions and 0 deletions

View file

@ -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