Skip to content

Conversation

@pwang347
Copy link
Member

@pwang347 pwang347 commented Jan 21, 2026

image image

Copilot AI review requested due to automatic review settings January 21, 2026 00:53
Copy link
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 updates prompt file path handling to enforce cross-platform compatibility by restricting path configurations to forward slashes only. The changes introduce a new chat.agentFilesLocations configuration key to replace the deprecated chat.modeFilesLocations, implement simplified path validation that rejects backslashes, and add warnings for deprecated glob pattern usage in prompt locations.

Changes:

  • Introduces AGENTS_LOCATION_KEY configuration and deprecates MODE_LOCATION_KEY
  • Updates path validation to reject backslashes and require forward slashes for cross-platform sharing
  • Adds glob pattern detection and warning mechanism for prompt and instruction file locations
  • Registers new internal command _listExtensionPromptFiles to enumerate extension-contributed prompt files

Reviewed changes

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

Show a summary per file
File Description
src/vs/workbench/contrib/chat/test/common/promptSyntax/utils/promptFilesLocator.test.ts Adds tests for backslash rejection and introduces comprehensive test suite for the new hasGlobPattern function
src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.ts Implements hasGlobPattern function, warnForGlobPatterns method, and introduces VALID_SIMPLIFIED_PATH_PATTERN with isValidSimplifiedPath function while deprecating skill-specific naming
src/vs/workbench/contrib/chat/common/promptSyntax/config/config.ts Introduces AGENTS_LOCATION_KEY, deprecates MODE_LOCATION_KEY, updates getPromptFileLocationsConfigKey to return new key, and restricts isTildePath to forward slashes only
src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.ts Adds _listExtensionPromptFiles internal command that lists all extension-contributed prompt files across all prompt types
src/vs/workbench/contrib/chat/browser/chat.contribution.ts Adds new chat.agentFilesLocations configuration schema with simplified path validation, updates skills configuration to use new pattern, and updates validation error messages

@pwang347 pwang347 marked this pull request as ready for review January 21, 2026 03:06
@vs-code-engineering
Copy link

vs-code-engineering bot commented Jan 21, 2026

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@rzhao271

Matched files:

  • src/vs/workbench/contrib/preferences/browser/media/settingsWidgets.css
  • src/vs/workbench/contrib/preferences/browser/settingsTree.ts
  • src/vs/workbench/contrib/preferences/browser/settingsWidgets.ts

@pwang347 pwang347 changed the title Update prompt file paths Updates to prompt file location settings Jan 21, 2026
@pwang347 pwang347 requested a review from aeschli January 21, 2026 03:08
@pwang347 pwang347 enabled auto-merge (squash) January 21, 2026 03:08
@vs-code-engineering vs-code-engineering bot added this to the January 2026 milestone Jan 21, 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.

2 participants