From 7a24ac1de4724b8e9d564814f2e654b02eab04b6 Mon Sep 17 00:00:00 2001 From: isidor Date: Fri, 1 Feb 2019 15:51:13 +0100 Subject: [PATCH] explorer: do not select and reveal roots which are tree inputs fixes #67749 --- .../parts/files/electron-browser/views/explorerView.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/parts/files/electron-browser/views/explorerView.ts b/src/vs/workbench/parts/files/electron-browser/views/explorerView.ts index 27befca06c6..247910d03e8 100644 --- a/src/vs/workbench/parts/files/electron-browser/views/explorerView.ts +++ b/src/vs/workbench/parts/files/electron-browser/views/explorerView.ts @@ -503,7 +503,7 @@ export class ExplorerView extends ViewletPanel { } private onSelectItem(fileStat: ExplorerItem, reveal = this.autoReveal): Promise { - if (!fileStat || !this.isBodyVisible()) { + if (!fileStat || !this.isBodyVisible() || this.tree.getInput() === fileStat) { return Promise.resolve(undefined); }