Exand custom views by default

This commit is contained in:
Sandeep Somavarapu
2019-01-24 12:41:18 +01:00
parent 48493c21ee
commit f82c0f12aa

View File

@@ -382,7 +382,7 @@ class ViewsExtensionHandler implements IWorkbenchContribution {
ctor: CustomTreeViewPanel,
when: ContextKeyExpr.deserialize(item.when),
canToggleVisibility: true,
collapsed: this.showCollapsed(container),
collapsed: false,
treeView: this.instantiationService.createInstance(CustomTreeView, item.id, container),
order: ExtensionIdentifier.equals(extension.description.identifier, container.extensionId) ? index + 1 : undefined,
extensionId: extension.description.identifier,
@@ -443,16 +443,6 @@ class ViewsExtensionHandler implements IWorkbenchContribution {
default: return this.viewContainersRegistry.get(`workbench.view.extension.${value}`);
}
}
private showCollapsed(container: ViewContainer): boolean {
switch (container.id) {
case EXPLORER:
case SCM:
case DEBUG:
return true;
}
return false;
}
}
const workbenchRegistry = Registry.as<IWorkbenchContributionsRegistry>(WorkbenchExtensions.Workbench);