Revert "Exand custom views by default"

This reverts commit f82c0f12aa.
This commit is contained in:
Sandeep Somavarapu
2019-01-24 14:53:29 +01:00
parent 5036c3eb6b
commit 0ea58800dc

View File

@@ -382,7 +382,7 @@ class ViewsExtensionHandler implements IWorkbenchContribution {
ctor: CustomTreeViewPanel,
when: ContextKeyExpr.deserialize(item.when),
canToggleVisibility: true,
collapsed: false,
collapsed: this.showCollapsed(container),
treeView: this.instantiationService.createInstance(CustomTreeView, item.id, container),
order: ExtensionIdentifier.equals(extension.description.identifier, container.extensionId) ? index + 1 : undefined,
extensionId: extension.description.identifier,
@@ -443,6 +443,16 @@ 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);