Skip to content

vscode internal tool for getting userdata home#297674

Merged
sandy081 merged 5 commits intomainfrom
sandy081/characteristic-smelt
Feb 25, 2026
Merged

vscode internal tool for getting userdata home#297674
sandy081 merged 5 commits intomainfrom
sandy081/characteristic-smelt

Conversation

@sandy081
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings February 25, 2026 13:14
@sandy081 sandy081 enabled auto-merge (squash) February 25, 2026 13:14
@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

This PR adds a new internal VS Code tool for getting the user data home directory path, and implements icon support for custom chat agents/modes.

Changes:

  • Adds vscode_getUserDataHome internal tool that returns the file system path to the user settings home folder
  • Implements icon property for custom agents, allowing prompt files to specify icons via the icon header attribute

Reviewed changes

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

Show a summary per file
File Description
src/vs/workbench/contrib/chat/common/tools/builtinTools/getUserDataHomeTool.ts New internal tool that retrieves and returns the user data profile location path
src/vs/workbench/contrib/chat/common/tools/builtinTools/tools.ts Registers the new getUserDataHome tool with the tools service and agent tool set
src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.ts Adds optional icon property to ICustomAgent interface for storing agent icon names
src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.ts Extracts icon from prompt file headers and includes it in the returned custom agent data
src/vs/workbench/contrib/chat/common/promptSyntax/promptFileParser.ts Adds icon attribute definition and getter method to parse icon from prompt file headers
src/vs/workbench/contrib/chat/common/chatModes.ts Implements icon observable in CustomChatMode, converting icon string to ThemeIcon and handling updates

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

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

sandy081 and others added 3 commits February 25, 2026 15:07
…rser.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@sandy081 sandy081 merged commit 88eb9d7 into main Feb 25, 2026
20 checks passed
@sandy081 sandy081 deleted the sandy081/characteristic-smelt branch February 25, 2026 14:37
sandy081 added a commit that referenced this pull request Feb 25, 2026
sandy081 added a commit that referenced this pull request Feb 25, 2026
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