Show telemetry for adding all items (#40541)

Closes #ISSUE

Release Notes:

- N/A *or* Added/Fixed/Improved ...
This commit is contained in:
Mikayla Maki
2025-10-17 22:11:36 +00:00
committed by GitHub
parent 438c890816
commit d7e193caf3
2 changed files with 9 additions and 4 deletions
+9
View File
@@ -954,6 +954,11 @@ impl Pane {
if allow_preview {
pane.set_preview_item_id(Some(new_item.item_id()), cx);
}
if let Some(text) = new_item.telemetry_event_text(cx) {
telemetry::event!(text);
}
pane.add_item_inner(
new_item,
true,
@@ -1170,6 +1175,10 @@ impl Pane {
window: &mut Window,
cx: &mut Context<Self>,
) {
if let Some(text) = item.telemetry_event_text(cx) {
telemetry::event!(text);
}
self.add_item_inner(
item,
activate_pane,
-4
View File
@@ -3294,10 +3294,6 @@ impl Workspace {
window: &mut Window,
cx: &mut App,
) {
if let Some(text) = item.telemetry_event_text(cx) {
telemetry::event!(text);
}
pane.update(cx, |pane, cx| {
pane.add_item(
item,