From 1c7867152bc49efc304078829892c7fae12259e2 Mon Sep 17 00:00:00 2001 From: isidor Date: Thu, 19 Apr 2018 18:25:21 +0200 Subject: [PATCH] fix bad loading root indentation fixes #41696 --- .../parts/files/electron-browser/views/explorerViewer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/parts/files/electron-browser/views/explorerViewer.ts b/src/vs/workbench/parts/files/electron-browser/views/explorerViewer.ts index c32ade7e82c..7fc664f81c4 100644 --- a/src/vs/workbench/parts/files/electron-browser/views/explorerViewer.ts +++ b/src/vs/workbench/parts/files/electron-browser/views/explorerViewer.ts @@ -76,7 +76,7 @@ export class FileDataSource implements IDataSource { } public hasChildren(tree: ITree, stat: ExplorerItem | Model): boolean { - return stat instanceof Model || (stat instanceof ExplorerItem && stat.isDirectory); + return stat instanceof Model || (stat instanceof ExplorerItem && (stat.isDirectory || stat.isRoot)); } public getChildren(tree: ITree, stat: ExplorerItem | Model): TPromise { -- GitLab