diff --git a/src/vs/workbench/contrib/files/browser/views/explorerView.ts b/src/vs/workbench/contrib/files/browser/views/explorerView.ts index f09b093513a7f72e53d26274114f225c088d983c..956a7d9fd52c1b899abaeff337db46a0a8664cb9 100644 --- a/src/vs/workbench/contrib/files/browser/views/explorerView.ts +++ b/src/vs/workbench/contrib/files/browser/views/explorerView.ts @@ -297,6 +297,11 @@ export class ExplorerView extends ViewletPane { for (const stat of this.tree.getSelection()) { const controller = this.renderer.getCompressedNavigationController(stat); + if (controller && focusedStat && controller === this.compressedNavigationController && stat !== focusedStat) { + // Ignore stats which are selected but are part of the same compact node as the focused stat + continue; + } + if (controller) { selectedStats.push(...controller.items); } else {