Skip to content

Instruction files - comma separated list of glob patterns not working in applyTo property #249256

@tomasloksa

Description

@tomasloksa

Does this issue occur when all extensions are disabled?: Yes/No
Yes

  • VS Code Version: 1.100.0 and 1.100.2
  • OS Version: Windows & Ubuntu

Steps to Reproduce:

  1. Create an instruction file with applyTo pattern created according to the docs (LINK to documentation) with at least two comma separated patterns.
    In my case, I also had other instruction files - general-rules matching all files '**' an rules matching files in Application folder.

Image

  1. Go to any random file matching the rules and ask copilot a question - only the rules with just one glob pattern are applied and the ones with multiple (folders, or file extensions) are ignored.

Image

I also tried using other separators, adding a space after the comma but none of them worked. When I removed the other rule and left just '**/*.cs' it worked fine.

Metadata

Metadata

Assignees

Labels

chat-promptsPrompt and Instruction files related issuesinsiders-releasedPatch has been released in VS Code Insiders

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions