explorer: do not select and reveal roots which are tree inputs

fixes #67749
pull/67762/head
isidor 2019-02-01 15:51:13 +01:00
parent f125fdfa20
commit 7a24ac1de4
1 changed files with 1 additions and 1 deletions

View File

@ -503,7 +503,7 @@ export class ExplorerView extends ViewletPanel {
}
private onSelectItem(fileStat: ExplorerItem, reveal = this.autoReveal): Promise<void> {
if (!fileStat || !this.isBodyVisible()) {
if (!fileStat || !this.isBodyVisible() || this.tree.getInput() === fileStat) {
return Promise.resolve(undefined);
}