-
Notifications
You must be signed in to change notification settings - Fork 37.4k
Closed
Labels
insiders-releasedPatch has been released in VS Code InsidersPatch has been released in VS Code Insiders
Milestone
Description
Type: Bug
VS Code version: Code 1.103.1 (360a4e4, 2025-08-12T16:25:40.542Z)
OS version: Darwin arm64 22.6.0
Modes:
System Info
| Item | Value |
|---|---|
| CPUs | Apple M2 (8 x 2400) |
| GPU Status | 2d_canvas: enabled direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_graphite: enabled_on trees_in_viz: disabled_off video_decode: enabled video_encode: enabled webgl: enabled webgl2: enabled webgpu: enabled webnn: disabled_off |
| Load (avg) | 1, 2, 3 |
| Memory (System) | 16.00GB (0.42GB free) |
| Process Argv | --crash-reporter-id c2ae6b30-a4bb-4708-8de7-d4eef5820283 |
| Screen Reader | no |
| VM | 0% |
Extensions (7)
| Extension | Author (truncated) | Version |
|---|---|---|
| copilot | Git | 1.350.0 |
| copilot-chat | Git | 0.30.1 |
| vscode-containers | ms- | 2.1.0 |
| vscode-docker | ms- | 2.0.0 |
| remote-containers | ms- | 0.422.1 |
| vscode-input-sequence | tom | 0.2.0 |
| markdown-all-in-one | yzh | 3.6.3 |
A/B Experiments
vsliv368:30146709
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythoneinst12:31285622
996jf627:31283433
pythonrdcb7:31342333
usemplatestapi:31297334
747dc170:31275177
aj953862:31281341
pylancequickfixf:31358881
9d2cg352:31346308
convertlamdat:31358880
usemarketplace:31343026
nesew2to5:31336538
agentclaude:31350858
82j33506:31327384
replacestringexc:31350595
nes-set-on:31351930
testaa123cf:31335227
63221493:31336333
envsactivate1:31353494
yijiwantestdri0626-c:31336931
0927b901:31350571
4gdec884:31348710
0ej4-default:31346761
45650338:31358607
0cj2b977:31352657
0574c672:31362109
asdad-cf:31365767
newchatstate:31363049
cloudbuttonc:31368503
retryenabled:31368124
Steps to Reproduce:
- Ensure that
chat.promptFilesis enabled in settings. - Create a prompt file at
.github/prompts/001-sample.prompt.mdwith the following content:--- mode: ask --- Output "Hello" in 7 languages
- In the Copilot Chat input, type
/001-sample. - Send the message.
Expected Behavior:
- When typing
/001-sample, the text should be highlighted, indicating that Copilot has recognized the prompt file. - After sending, Copilot should respond with "Follow instructions in 001-sample.prompt.md." and execute the instructions from the prompt file.
See behavior in 1.102.3:
Actual Behavior:
- When typing
/001-sample, the text is not highlighted. (This occurs in v1.103.0 and later) - After sending, Copilot provides a generic response unrelated to the content of the prompt file.
See behavior in 1.103.0 and later:
Additional Information:
- This issue started occurring after updating from VS Code version 1.102.3 to 1.103.0.
- The issue persists in version 1.103.1.
- Prompt files with names that do not contain numbers (e.g.,
sample.prompt.md) are recognized correctly. - It seems this is a regression caused by a change in Pull Request Issue: Prompt file name cannot contain Unicode letters #255402, specifically in
src/vs/workbench/contrib/chat/common/chatRequestParser.ts. The regular expression for slash commands was changed fromconst slashReg = /^\/([\w_\-\.:]+)(?=(\s|$|\b))/i;toconst slashReg = /^\/([\p{L}_\-\.:]+)(?=(\s|$|\b))/iu;. The new regex uses\p{L}which matches Unicode letters but not digits, causing prompt file names with numbers to be ignored.
Metadata
Metadata
Assignees
Labels
insiders-releasedPatch has been released in VS Code InsidersPatch has been released in VS Code Insiders