Skip to content

fix #314733 - #314737

Merged
Sandeep Somavarapu (sandy081) merged 1 commit into
mainfrom
sandy081/flexible-penguin
May 6, 2026
Merged

Sandeep Somavarapu (sandy081) merged 1 commit into
mainfrom
sandy081/flexible-penguin

Conversation

@sandy081

Copy link
Copy Markdown
Member

fix #314733

Copilot AI review requested due to automatic review settings May 6, 2026 14:36
@sandy081
Sandeep Somavarapu (sandy081) enabled auto-merge (squash) May 6, 2026 14:36

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

This PR addresses issue #314733 by ensuring the built-in chat extension enablement “migration” logic is re-applied when switching to a new profile (where the profile-scoped storage changes), even though ExtensionEnablementService itself is not recreated. This prevents the chat extension from being incorrectly enabled in a fresh profile when chat setup is not completed (a situation that can lead to unintended settings churn during profile switches).

Changes:

  • Refactors the built-in chat extension enablement migration into ensureChatExtensionInitialDisabledState() and invokes it both on construction and when computing the chat extension’s enablement state.
  • Adds a unit test covering that the chat extension is re-disabled when the migration flag is reset (simulating a fresh profile scenario).
  • Extends the test chat entitlement service scaffolding to carry a context field used by the migration.
Show a summary per file
File Description
src/vs/workbench/test/common/workbenchTestServices.ts Adds context to TestChatEntitlementService and imports supporting types for tests.
src/vs/workbench/services/extensionManagement/test/browser/extensionEnablementService.test.ts Adds a regression test that validates the chat extension is disabled again when the migration is re-triggered.
src/vs/workbench/services/extensionManagement/browser/extensionEnablementService.ts Extracts migration logic into a helper and re-runs it for the chat extension during enablement computation to handle profile switches.

Copilot's findings

  • Files reviewed: 3/3 changed files
  • Comments generated: 3

@sandy081
Sandeep Somavarapu (sandy081) merged commit 20544b7 into main May 6, 2026
46 of 48 checks passed
@sandy081
Sandeep Somavarapu (sandy081) deleted the sandy081/flexible-penguin branch May 6, 2026 16:18
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Jun 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Switching profiles is deleting chat.disableAIFeatures setting

3 participants