Repository navigation
fix #314733 - #314737
Merged
Merged
fix #314733#314737
Conversation
Contributor
There was a problem hiding this comment.
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
contextfield 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
Benjamin Christopher Simmonds (benibenj)
approved these changes
May 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix #314733