Fix #38597
This commit is contained in:
parent
d6b39a371d
commit
a019af79a8
1 changed files with 3 additions and 2 deletions
|
@ -795,7 +795,8 @@ export class ReloadAction extends Action {
|
|||
constructor(
|
||||
@IExtensionsWorkbenchService private extensionsWorkbenchService: IExtensionsWorkbenchService,
|
||||
@IWindowService private windowService: IWindowService,
|
||||
@IExtensionService private extensionService: IExtensionService
|
||||
@IExtensionService private extensionService: IExtensionService,
|
||||
@IExtensionEnablementService private extensionEnablementService: IExtensionEnablementService,
|
||||
) {
|
||||
super('extensions.reload', localize('reloadAction', "Reload"), ReloadAction.DisabledClass, false);
|
||||
this.throttler = new Throttler();
|
||||
|
@ -826,7 +827,7 @@ export class ReloadAction extends Action {
|
|||
private computeReloadState(runningExtensions: IExtensionDescription[]): void {
|
||||
const isInstalled = this.extensionsWorkbenchService.local.some(e => e.id === this.extension.id);
|
||||
const isUninstalled = this.extension.state === ExtensionState.Uninstalled;
|
||||
const isDisabled = this.extension.disabledForWorkspace || this.extension.disabledGlobally;
|
||||
const isDisabled = !this.extensionEnablementService.isEnabled(this.extension);
|
||||
|
||||
const filteredExtensions = runningExtensions.filter(e => areSameExtensions(e, this.extension));
|
||||
const isExtensionRunning = filteredExtensions.length > 0;
|
||||
|
|
Loading…
Reference in a new issue