Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/views/nodes/fileHistoryTrackerNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,12 @@ export class FileHistoryTrackerNode extends SubscribeableViewNode<'file-history-
void this._triggerChangeDebounced();
return;
}

// Only trigger change if the editor's URI is different from the current one
if (!editor?.document?.uri || areUrisEqual(editor.document.uri, this.uri)) {
return;
}

void this.triggerChange();
}

Expand Down