Skip to content

Commit 3df8cad

Browse files
authored
Hovering over a comment highlights its range in unrelated files (microsoft#167381)
Fixes microsoft#167261
1 parent ab0cbe8 commit 3df8cad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/comments/browser/commentThreadRangeDecorator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class CommentThreadRangeDecorator extends Disposable {
6666
}
6767

6868
private updateCurrent(thread: CommentThread<IRange> | undefined) {
69-
if (!this.editor) {
69+
if (!this.editor || (thread?.resource && (thread.resource?.toString() !== this.editor.getModel()?.uri.toString()))) {
7070
return;
7171
}
7272
this.currentThreadCollapseStateListener?.dispose();

0 commit comments

Comments
 (0)