Adopt new tree in custom views (#76407)

Auto expand initial state of tree nodes is not yet implemented.
Part of #63566
This commit is contained in:
Alex Ross
2019-07-08 18:07:16 +02:00
committed by GitHub
parent b07ff48eae
commit a70ca602bc
5 changed files with 205 additions and 176 deletions

View File

@@ -81,7 +81,10 @@ export class MainThreadTreeViews extends Disposable implements MainThreadTreeVie
await treeView.refresh();
}
for (const parent of parentChain) {
await treeView.expand(parent);
const parentItem = dataProvider.getItem(parent.handle);
if (parentItem) {
await treeView.expand(parentItem);
}
}
const item = dataProvider.getItem(itemIn.handle);
if (item) {