Skip to content

Fix: hide Disable globally action when extension is enabled for works…#303698

Open
sohamm20 wants to merge 1 commit intomicrosoft:mainfrom
sohamm20:fix-extension-disable-dropdown
Open

Fix: hide Disable globally action when extension is enabled for works…#303698
sohamm20 wants to merge 1 commit intomicrosoft:mainfrom
sohamm20:fix-extension-disable-dropdown

Conversation

@sohamm20
Copy link

…pace

Fixes #244138

When an extension is globally disabled but enabled for a workspace, the Disable dropdown would incorrectly show both "Disable" and "Disable (Workspace)". This updates DisableGloballyAction's enablement condition to only be enabled when the extension is actually globally enabled.

…pace

Fixes microsoft#244138

When an extension is globally disabled but enabled for a workspace, the Disable dropdown would incorrectly show both "Disable" and "Disable (Workspace)". This updates DisableGloballyAction's enablement condition to only be enabled when the extension is actually globally enabled.
Copilot AI review requested due to automatic review settings March 21, 2026 07:23
@vs-code-engineering vs-code-engineering bot added this to the 1.113.0 milestone Mar 21, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes the Extensions view “Disable” dropdown so it doesn’t offer Disable (global) when an extension is globally disabled but enabled for the current workspace, aligning the actions with the effective enablement state.

Changes:

  • Tighten DisableGloballyAction enablement so it only appears when the extension is actually Enabled Globally.

@sohamm20
Copy link
Author

@sandy081 can you review?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Disabled and enabled (workspace) extension Disable button dropdown contains both "Disable" and "Disable (Workspace)" items

3 participants