提交 2063f17b 编写于 作者: S Sandeep Somavarapu

#60053 hide message when reload is disabled

上级 771099d0
......@@ -403,7 +403,7 @@ export class ExtensionEditor extends BaseEditor {
});
}
private setSubText(extension: IExtension, reloadAction: ReloadAction) {
private setSubText(extension: IExtension, reloadAction: ReloadAction): void {
hide(this.subtextContainer);
const ignoreAction = this.instantiationService.createInstance(IgnoreExtensionRecommendationAction);
......@@ -448,14 +448,20 @@ export class ExtensionEditor extends BaseEditor {
}
});
reloadAction.onDidChange(e => {
this.transientDisposables.push(reloadAction.onDidChange(e => {
if (e.tooltip) {
this.subtext.textContent = reloadAction.tooltip;
show(this.subtextContainer);
ignoreAction.enabled = false;
undoIgnoreAction.enabled = false;
}
});
if (e.enabled === true) {
show(this.subtextContainer);
}
if (e.enabled === false) {
hide(this.subtextContainer);
}
}));
}
focus(): void {
......
......@@ -2394,13 +2394,6 @@ export class DisabledStatusLabelAction extends Action {
return;
}
}
if (this.extension.enablementState === EnablementState.Disabled) {
this.class = `${DisabledStatusLabelAction.Class}`;
this.label = localize('disabled globally', "Disabled for all Windows.");
} else if (this.extension.enablementState === EnablementState.WorkspaceDisabled) {
this.class = `${DisabledStatusLabelAction.Class}`;
this.label = localize('disabled workspace', "Disabled for this Workspace.");
}
}
}));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册