提交 9b52a727 编写于 作者: S Sandeep Somavarapu

Fix #53069

上级 d2d735cb
...@@ -820,20 +820,22 @@ export class ManageExtensionAction extends Action { ...@@ -820,20 +820,22 @@ export class ManageExtensionAction extends Action {
} }
private createMenuActionGroups(): IAction[][] { private createMenuActionGroups(): IAction[][] {
return [ const groups: IAction[][] = [];
[ groups.push([
this.instantiationService.createInstance(EnableGloballyAction, EnableGloballyAction.LABEL), this.instantiationService.createInstance(EnableGloballyAction, EnableGloballyAction.LABEL),
this.instantiationService.createInstance(EnableForWorkspaceAction, EnableForWorkspaceAction.LABEL) this.instantiationService.createInstance(EnableForWorkspaceAction, EnableForWorkspaceAction.LABEL)
], ]);
[ groups.push([
this.instantiationService.createInstance(DisableGloballyAction, DisableGloballyAction.LABEL), this.instantiationService.createInstance(DisableGloballyAction, DisableGloballyAction.LABEL),
this.instantiationService.createInstance(DisableForWorkspaceAction, DisableForWorkspaceAction.LABEL) this.instantiationService.createInstance(DisableForWorkspaceAction, DisableForWorkspaceAction.LABEL)
], ]);
this.extensionManagmentServerService.extensionManagementServers.length > 1 ? [this.instantiationService.createInstance(MultiServerInstallSubMenuAction)] : [], if (this.extensionManagmentServerService.extensionManagementServers.length > 1) {
[ groups.push([this.instantiationService.createInstance(MultiServerInstallSubMenuAction)]);
this.extensionManagmentServerService.extensionManagementServers.length > 1 ? this.instantiationService.createInstance(MultiServerUnInstallSubMenuAction) : this.instantiationService.createInstance(UninstallAction) groups.push([this.instantiationService.createInstance(MultiServerUnInstallSubMenuAction)]);
] } else {
]; groups.push([this.instantiationService.createInstance(UninstallAction)]);
}
return groups;
} }
private update(): void { private update(): void {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册