vscode internal tool for getting userdata home#297674
Merged
Conversation
Contributor
There was a problem hiding this comment.
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_getUserDataHomeinternal 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
iconheader 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 |
src/vs/workbench/contrib/chat/common/tools/builtinTools/getUserDataHomeTool.ts
Show resolved
Hide resolved
…rser.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
dbaeumer
approved these changes
Feb 25, 2026
sandy081
added a commit
that referenced
this pull request
Feb 25, 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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.