mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
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:
@@ -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) {
|
||||
|
||||
@@ -383,7 +383,7 @@ class ViewsExtensionHandler implements IWorkbenchContribution {
|
||||
when: ContextKeyExpr.deserialize(item.when),
|
||||
canToggleVisibility: true,
|
||||
collapsed: this.showCollapsed(container),
|
||||
treeView: this.instantiationService.createInstance(CustomTreeView, item.id, container),
|
||||
treeView: this.instantiationService.createInstance(CustomTreeView, item.id, item.name, container),
|
||||
order: ExtensionIdentifier.equals(extension.description.identifier, container.extensionId) ? index + 1 : undefined,
|
||||
extensionId: extension.description.identifier,
|
||||
originalContainerId: entry.key
|
||||
|
||||
Reference in New Issue
Block a user