Repository navigation
PromptsService: remove unnecessary change events - #305662
Merged
Martin Aeschlimann (aeschli) merged 3 commits intoMar 28, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR refactors prompt/customization change signaling in the chat prompt-syntax subsystem to reduce unnecessary change events and make caching behavior more consistent across prompt-derived data (slash commands, agents, skills, instructions).
Changes:
- Simplifies
PromptFilesLocator’s update/event flow and broadens config-change triggers (including parent-repo customization setting). - Refactors
PromptsServicecaching to remove “activate caching by subscribing” behavior and adds caching for instruction files. - Updates tests to explicitly fire configuration change events for
TestConfigurationService.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/vs/workbench/contrib/chat/test/common/promptSyntax/service/promptsService.test.ts | Adjusts config updates to be awaited where needed and manually fires config change events in tests. |
| src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.ts | Removes the emitEvent parameter from internal updates and centralizes when file-location change events are emitted. |
| src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.ts | Refactors cached computations/events, adds cached instruction files, and reduces model-change events. |
…ptsServiceImpl.ts Co-authored-by: Copilot <[email protected]>
…ptsServiceImpl.ts Co-authored-by: Copilot <[email protected]>
Logan Ramos (lramos15)
approved these changes
Mar 27, 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.
No description provided.