提交 54f7922a 编写于 作者: R Ramya Achutha Rao

Use reloadAction.onDidChange to set the text

上级 fe83544f
......@@ -48,7 +48,6 @@ import { ExtensionsTree, IExtensionData } from 'vs/workbench/parts/extensions/br
import { ShowCurrentReleaseNotesAction } from 'vs/workbench/parts/update/electron-browser/update';
import { KeybindingParser } from 'vs/base/common/keybindingParser';
import { IStorageService } from 'vs/platform/storage/common/storage';
import { areSameExtensions } from 'vs/platform/extensionManagement/common/extensionManagementUtil';
function renderBody(body: string): string {
const styleSheetPath = require.toUrl('./media/markdown.css').replace('file://', 'vscode-core-resource://');
......@@ -403,12 +402,6 @@ export class ExtensionEditor extends BaseEditor {
}
private setSubText(extension: IExtension, reloadAction: ReloadAction) {
if (reloadAction.enabled) {
this.subtext.textContent = reloadAction.tooltip;
show(this.subtextContainer);
return;
}
hide(this.subtextContainer);
const ignoreAction = this.instantiationService.createInstance(IgnoreExtensionRecommendationAction);
......@@ -453,8 +446,8 @@ export class ExtensionEditor extends BaseEditor {
}
});
this.extensionsWorkbenchService.onChange(e => {
if (areSameExtensions(e, extension) && reloadAction.enabled) {
reloadAction.onDidChange(e => {
if (e.tooltip) {
this.subtext.textContent = reloadAction.tooltip;
show(this.subtextContainer);
ignoreAction.enabled = false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册