提交 1c786715 编写于 作者: I isidor

fix bad loading root indentation

fixes #41696
上级 6c3cb56e
......@@ -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<ExplorerItem[]> {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册