Skip to content

plugins: clear enablement state on marketplace plugin uninstall#302573

Merged
connor4312 merged 3 commits intomainfrom
connor4312/301295
Mar 17, 2026
Merged

plugins: clear enablement state on marketplace plugin uninstall#302573
connor4312 merged 3 commits intomainfrom
connor4312/301295

Conversation

@connor4312
Copy link
Member

plugins: clear enablement state on marketplace plugin uninstall

  • Adds IEnablementModel.remove(key) to delete enablement entries from
    both profile and workspace storage
  • Calls remove() when uninstalling a marketplace plugin so that a
    disabled plugin does not retain stale disabled state after uninstall

Fixes #301295

(Commit message generated by Copilot)

- Adds IEnablementModel.remove(key) to delete enablement entries from
  both profile and workspace storage
- Calls remove() when uninstalling a marketplace plugin so that a
  disabled plugin does not retain stale disabled state after uninstall

Fixes #301295

(Commit message generated by Copilot)
Copilot AI review requested due to automatic review settings March 17, 2026 21:37
@connor4312 connor4312 enabled auto-merge (squash) March 17, 2026 21:37
@vs-code-engineering vs-code-engineering bot added this to the 1.113.0 milestone Mar 17, 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

This PR fixes stale enablement state for marketplace-installed chat agent plugins by explicitly clearing persisted enablement entries when a marketplace plugin is uninstalled, preventing “disabled + uninstalled” UI state.

Changes:

  • Add IEnablementModel.remove(key) to delete enablement entries from both profile and workspace storage.
  • Call enablementModel.remove(...) during marketplace plugin uninstall flow.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.ts Clears persisted enablement state as part of marketplace plugin removal.
src/vs/workbench/contrib/chat/common/enablement.ts Extends enablement API with remove() and implements deletion for both profile/workspace maps.

You can also share your feedback on Copilot code review. Take the survey.

roblourens
roblourens previously approved these changes Mar 17, 2026
@connor4312 connor4312 merged commit fd89486 into main Mar 17, 2026
20 checks passed
@connor4312 connor4312 deleted the connor4312/301295 branch March 17, 2026 22:59
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.

Nitpick: can get uninstalled disabled plugin

4 participants