Skip to content

PromptsService: remove unnecessary change events - #305662

Merged
Martin Aeschlimann (aeschli) merged 3 commits into
mainfrom
aeschli/overwhelming-camel-354
Mar 28, 2026
Merged

Martin Aeschlimann (aeschli) merged 3 commits into
mainfrom
aeschli/overwhelming-camel-354

Conversation

@aeschli

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings March 27, 2026 14:04
@vs-code-engineering vs-code-engineering Bot added this to the Backlog milestone Mar 27, 2026

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 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 PromptsService caching 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.

@aeschli Martin Aeschlimann (aeschli) changed the title remove unnecessary change events PromptsService: remove unnecessary change events Mar 27, 2026
@aeschli
Martin Aeschlimann (aeschli) merged commit ea959a9 into main Mar 28, 2026
28 of 29 checks passed
@aeschli
Martin Aeschlimann (aeschli) deleted the aeschli/overwhelming-camel-354 branch March 28, 2026 06:39
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators May 12, 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.

3 participants