提交 0ea58800 编写于 作者: S Sandeep Somavarapu

Revert "Exand custom views by default"

This reverts commit f82c0f12.
上级 5036c3eb
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册