Do not report same project type multiple times for same worktree (#32785)
Follow-up to: https://github.com/zed-industries/zed/pull/32769 Now that the project type identification telemetry can look for multiple files in order to identify the project type, we need to make sure we still only send a single event for a given worktree. Also, simplifies project detection telemetry code Release Notes: - N/A
This commit is contained in:
parent
4733f188da
commit
c72cdfd843
2 changed files with 48 additions and 65 deletions
|
@ -2945,7 +2945,7 @@ impl Project {
|
|||
WorktreeStoreEvent::WorktreeUpdatedEntries(worktree_id, changes) => {
|
||||
self.client()
|
||||
.telemetry()
|
||||
.report_discovered_project_events(*worktree_id, changes);
|
||||
.report_discovered_project_type_events(*worktree_id, changes);
|
||||
cx.emit(Event::WorktreeUpdatedEntries(*worktree_id, changes.clone()))
|
||||
}
|
||||
WorktreeStoreEvent::WorktreeDeletedEntry(worktree_id, id) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue