Skip to content

Add "Organization" label for prompt files#289722

Merged
pwang347 merged 4 commits into
mainfrom
pawang/promptFileSource
Jan 22, 2026
Merged

Add "Organization" label for prompt files#289722
pwang347 merged 4 commits into
mainfrom
pawang/promptFileSource

Conversation

@pwang347
Copy link
Copy Markdown
Member

image

Fixes #280798

Copilot AI review requested due to automatic review settings January 22, 2026 19:11
@pwang347 pwang347 changed the title Internal support for "Organization" label for prompt files Add "Organization" label for prompt files Jan 22, 2026
@vs-code-engineering vs-code-engineering Bot added this to the January 2026 milestone Jan 22, 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 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 ExtensionAgentSourceType import

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.

Comment thread src/vs/workbench/contrib/chat/browser/promptSyntax/pickers/promptFilePickers.ts Outdated
Comment thread src/vs/workbench/contrib/chat/browser/promptSyntax/pickers/promptFilePickers.ts Outdated
Comment thread src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.ts Outdated
pwang347 and others added 3 commits January 22, 2026 11:35
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@pwang347 pwang347 merged commit c03bc3d into main Jan 22, 2026
32 of 33 checks passed
@pwang347 pwang347 deleted the pawang/promptFileSource branch January 22, 2026 21:02
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Mar 8, 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.

Distinguish where the enterprise agent mode comes from

3 participants