From 2936133e67aded3c483167cfddfb07715fef97cf Mon Sep 17 00:00:00 2001 From: isidor Date: Thu, 5 Dec 2019 13:34:58 +0100 Subject: [PATCH] Ignore stats which are selected but are part of the same compact node as the focused stat fixes #86388 --- src/vs/workbench/contrib/files/browser/views/explorerView.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/vs/workbench/contrib/files/browser/views/explorerView.ts b/src/vs/workbench/contrib/files/browser/views/explorerView.ts index f09b093513a..956a7d9fd52 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 { -- GitLab