Skip to content

Fix #244138: Show single Disable Workspace button when extension is workspace-enabled - #332329

Open
Deepika Rattewal (deepika-rattewal) wants to merge 1 commit into
microsoft:mainfrom
deepika-rattewal:fix-extension-disable-dropdown
Open

Fix #244138: Show single Disable Workspace button when extension is workspace-enabled#332329
Deepika Rattewal (deepika-rattewal) wants to merge 1 commit into
microsoft:mainfrom
deepika-rattewal:fix-extension-disable-dropdown

Conversation

@deepika-rattewal

Copy link
Copy Markdown

Fixes #244138

Summary of Changes:

  • Prevents the global Disable action from being active when an extension is workspace-enabled, ensuring only the single Disable (Workspace) button appears without a redundant dropdown.

Copilot AI balanced review requested due to automatic review settings August 24, 2026 13:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates extension action enablement to avoid a redundant Disable dropdown for workspace-enabled extensions.

Changes:

  • Adjusts when the global Disable action is available.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

}
this.enabled = this.extension.state === ExtensionState.Installed
&& (this.extension.enablementState === EnablementState.EnabledGlobally || this.extension.enablementState === EnablementState.EnabledWorkspace)
&& (this.extension.enablementState === EnablementState.EnabledGlobally || this.extension.enablementState === EnablementState.DisabledWorkspace)
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