Skip to content

Commit 6ca676c

Browse files
authored
1 parent d532fad commit 6ca676c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/vs/workbench/contrib/extensions/browser/extensionsActions.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2384,6 +2384,10 @@ export class ExtensionStatusAction extends ExtensionAction {
23842384
const isRunning = this.extensionService.extensions.some(e => areSameExtensions({ id: e.identifier.value, uuid: e.uuid }, this.extension!.identifier));
23852385

23862386
if (isEnabled && isRunning) {
2387+
if (this.extension.enablementState === EnablementState.EnabledWorkspace) {
2388+
this.updateStatus({ message: new MarkdownString(localize('workspace enabled', "This extension is enabled for this workspace by the user.")) }, true);
2389+
return;
2390+
}
23872391
if (this.extensionManagementServerService.localExtensionManagementServer && this.extensionManagementServerService.remoteExtensionManagementServer) {
23882392
if (this.extension.server === this.extensionManagementServerService.remoteExtensionManagementServer) {
23892393
this.updateStatus({ message: new MarkdownString(localize('extension enabled on remote', "Extension is enabled on '{0}'", this.extension.server.label)) }, true);
@@ -2394,10 +2398,6 @@ export class ExtensionStatusAction extends ExtensionAction {
23942398
this.updateStatus({ message: new MarkdownString(localize('globally enabled', "This extension is enabled globally.")) }, true);
23952399
return;
23962400
}
2397-
if (this.extension.enablementState === EnablementState.EnabledWorkspace) {
2398-
this.updateStatus({ message: new MarkdownString(localize('workspace enabled', "This extension is enabled for this workspace by the user.")) }, true);
2399-
return;
2400-
}
24012401
}
24022402

24032403
if (!isEnabled && !isRunning) {

0 commit comments

Comments
 (0)