Take static arguments for the view descriptor ctor

This commit is contained in:
Sandeep Somavarapu
2019-03-06 12:24:41 +01:00
parent 97efb5af57
commit cd816afcc9
9 changed files with 36 additions and 37 deletions

View File

@@ -377,7 +377,7 @@ class ViewsExtensionHandler implements IWorkbenchContribution {
const viewDescriptor = <ICustomViewDescriptor>{
id: item.id,
name: item.name,
ctor: CustomTreeViewPanel,
ctorDescriptor: { ctor: CustomTreeViewPanel },
when: ContextKeyExpr.deserialize(item.when),
canToggleVisibility: true,
collapsed: this.showCollapsed(container),