Fix issue #244138: Disable button shows dropdown when it should show … · microsoft/vscode@c32542a · GitHub
Skip to content

Commit c32542a

Browse files
author
realMelTuc
committed
Fix issue #244138: Disable button shows dropdown when it should show 'Disable (Workspace)' button
When an extension is disabled globally and then enabled for a workspace, the Disable button should show 'Disable (Workspace)' without a dropdown, not a dropdown with both 'Disable' and 'Disable (Workspace)' options. The fix modifies DisableGloballyAction.update() to only enable the action when the extension is currently enabled globally, not when it's enabled for workspace only. This prevents showing the global disable option when it's not applicable.
1 parent 3453156 commit c32542a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)