Skip to content

Custom mode is not retained during reload#279159

Merged
aeschli merged 1 commit intomainfrom
aeschli/crowded-swan-789
Nov 24, 2025
Merged

Custom mode is not retained during reload#279159
aeschli merged 1 commit intomainfrom
aeschli/crowded-swan-789

Conversation

@aeschli
Copy link
Contributor

@aeschli aeschli commented Nov 24, 2025

Fixes #278695

Copilot AI review requested due to automatic review settings November 24, 2025 12:42
@aeschli aeschli enabled auto-merge (squash) November 24, 2025 12:42
@aeschli aeschli self-assigned this Nov 24, 2025
@vs-code-engineering vs-code-engineering bot added this to the November 2025 milestone Nov 24, 2025
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 an issue where custom mode is not retained during reload by ensuring that extension contributions are only accessed after extensions have been registered.

  • Adds await for extensionService.whenInstalledExtensionsRegistered() in getExtensionContributions method to prevent race conditions
  • Updates test setup to properly mock IExtensionService with the required whenInstalledExtensionsRegistered method

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.ts Adds IExtensionService injection and awaits extension registration before accessing extension-contributed files
src/vs/workbench/contrib/chat/test/common/promptSyntax/service/promptsService.test.ts Adds IExtensionService mock to test setup to support the new dependency

@aeschli aeschli merged commit 7a7ed11 into main Nov 24, 2025
33 of 34 checks passed
@aeschli aeschli deleted the aeschli/crowded-swan-789 branch November 24, 2025 13:04
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Jan 8, 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.

Custom mode is not retained during reload

3 participants