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

Update labels first

上级 8667e4ee
......@@ -513,6 +513,16 @@ export class MultiServerInstallAction extends Action {
return;
}
if (this.extension.state === ExtensionState.Installing) {
this.label = MultiServerInstallAction.InstallingLabel;
this.class = MultiServerInstallAction.InstallingClass;
this.tooltip = MultiServerInstallAction.InstallingLabel;
} else {
this.label = MultiServerInstallAction.InstallLabel;
this.class = MultiServerInstallAction.Class;
this.tooltip = MultiServerInstallAction.InstallLabel;
}
const isInstalled = this.extension.locals.length > 0;
if (isInstalled && this.disableWhenInstalled) {
......@@ -535,16 +545,6 @@ export class MultiServerInstallAction extends Action {
});
this.enabled = this.extensionsWorkbenchService.canInstall(this.extension) && (isExtensionNotInstalledInRecommendedServer || this.extension.locals.length === 0);
if (this.extension.state === ExtensionState.Installing) {
this.label = MultiServerInstallAction.InstallingLabel;
this.class = MultiServerInstallAction.InstallingClass;
this.tooltip = MultiServerInstallAction.InstallingLabel;
} else {
this.label = MultiServerInstallAction.InstallLabel;
this.class = MultiServerInstallAction.Class;
this.tooltip = MultiServerInstallAction.InstallLabel;
}
}
public run(): TPromise<any> {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册