Skip to content

Revert "vscode internal tool for getting userdata home (#297674)"#297694

Merged
sandy081 merged 1 commit intomainfrom
sandy081/obvious-squid
Feb 25, 2026
Merged

Revert "vscode internal tool for getting userdata home (#297674)"#297694
sandy081 merged 1 commit intomainfrom
sandy081/obvious-squid

Conversation

@sandy081
Copy link
Copy Markdown
Member

This reverts commit 88eb9d7.

Copilot AI review requested due to automatic review settings February 25, 2026 14:57
@sandy081 sandy081 enabled auto-merge (squash) February 25, 2026 14:57
@sandy081 sandy081 self-assigned this Feb 25, 2026
@vs-code-engineering vs-code-engineering bot added this to the February 2026 milestone Feb 25, 2026
Copy link
Copy Markdown
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

Reverts the previously introduced internal chat tool for retrieving the user data home path, and rolls back the associated prompt/agent “icon” plumbing in the prompt syntax + agent model.

Changes:

  • Removes GetUserDataHomeTool implementation, registration, and its unit test.
  • Removes icon support from custom agent prompt headers and ICustomAgent shape, updating parsing/service logic and tests accordingly.
  • Updates CustomChatMode to no longer track an icon observable (custom modes now expose no icon).

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/vs/workbench/contrib/chat/test/common/tools/builtinTools/getUserDataHomeTool.test.ts Deletes the unit test for the reverted tool.
src/vs/workbench/contrib/chat/test/common/promptSyntax/service/promptsService.test.ts Updates expected agent objects to no longer include icon.
src/vs/workbench/contrib/chat/common/tools/builtinTools/tools.ts Removes registration of GetUserDataHomeTool.
src/vs/workbench/contrib/chat/common/tools/builtinTools/getUserDataHomeTool.ts Deletes the reverted tool implementation and metadata.
src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.ts Stops reading/returning icon from parsed agent headers.
src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.ts Removes icon from the ICustomAgent interface.
src/vs/workbench/contrib/chat/common/promptSyntax/promptFileParser.ts Removes the icon header attribute constant + getter.
src/vs/workbench/contrib/chat/common/chatModes.ts Removes custom-mode icon observable wiring; custom modes now expose no icon.

Comment on lines 339 to 341
get icon(): IObservable<ThemeIcon | undefined> {
return this._iconObservable;
return constObservable(undefined);
}
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CustomChatMode.icon now returns constObservable(undefined) directly from the getter, which creates a new observable instance on every access. Consider caching a single observable (e.g. a private readonly field or static const observable) to avoid repeated allocations and to keep the observable reference stable for subscribers.

Copilot uses AI. Check for mistakes.
@sandy081 sandy081 merged commit 819c80a into main Feb 25, 2026
24 checks passed
@sandy081 sandy081 deleted the sandy081/obvious-squid branch February 25, 2026 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants