Add "Organization" label for prompt files#289722
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds internal support for distinguishing "Organization"-provided prompt files from regular extension prompt files. Prompt files from the built-in chat extension that are located under a /github/ path are now labeled as "Organization" instead of "Extensions" in the UI.
Changes:
- Modified
isModeConsideredBuiltIn()to exclude organization-provided modes (those with/github/in their path) from being considered built-in - Added grouping logic to separate extension prompt files into "Organization" and "Extensions" categories based on their path
- Removed unused
ExtensionAgentSourceTypeimport
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.ts | Refactored built-in mode detection to exclude organization-provided modes (under /github/ path) and removed unused import |
| src/vs/workbench/contrib/chat/browser/promptSyntax/pickers/promptFilePickers.ts | Added grouping logic to separate extension prompts into "Organization" and "Extensions" categories, and injected IProductService dependency |
Comments suppressed due to low confidence (1)
src/vs/workbench/contrib/chat/browser/promptSyntax/pickers/promptFilePickers.ts:447
- The comment "Hack:" suggests this is a temporary solution. Consider documenting this more thoroughly with information about what a more permanent solution would look like, or create a tracking issue for a better implementation. The hardcoded '/github/' path check is brittle and may need to be made more configurable in the future.
// Hack: if the prompt file comes from the built-in chat extension and is under a `/github/` path it's an organization-provided prompt file.
sandy081
approved these changes
Jan 22, 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.
Fixes #280798