Skip to content

Commit 26f67e0

Browse files
authored
1 parent 4b0847c commit 26f67e0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/vs/workbench/contrib/scm/browser/scmViewPane.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2854,6 +2854,12 @@ export class SCMViewPane extends ViewPane {
28542854
return;
28552855
}
28562856

2857+
// Do not set focus/selection when the resource is already focused and selected
2858+
if (this.tree.getFocus().some(e => isSCMResource(e) && this.uriIdentityService.extUri.isEqual(e.sourceUri, uri)) &&
2859+
this.tree.getSelection().some(e => isSCMResource(e) && this.uriIdentityService.extUri.isEqual(e.sourceUri, uri))) {
2860+
return;
2861+
}
2862+
28572863
this.revealResourceThrottler.queue(
28582864
() => this.treeOperationSequencer.queue(
28592865
async () => {

0 commit comments

Comments
 (0)