- Copilot Chat Extension Version: 0.37.1
- VS Code Version: 1.109.0
- OS Version: Windows
- Feature : Agent mode
- Selected model: Claude 4.5 Sonnet
- Logs: N/A (no errors logged)
Steps to Reproduce:
-
Create a Copilot instructions file at:
.github/instructions/bloc.instructions.md
-
Add the following content:
Always use Bloc instead of Cubit.
Never suggest GlobalKey unless absolutely required.
-
Open any .dart file in VS Code.
-
Use GitHub Copilot Chat to generate or edit code.
-
Observe that Copilot does not follow the instructions.
-
Change the instructions file to:
-
Repeat step 4.
-
Observe that Copilot does follow the instructions when applyTo is set to "**".
Expected Result:
Copilot should apply instructions when applyTo matches the current file (**/*.dart).
Actual Result:
Copilot appears to ignore instructions when applyTo uses a file-specific glob pattern, but works when using the global pattern "**".
Steps to Reproduce:
Create a Copilot instructions file at:
.github/instructions/bloc.instructions.mdAdd the following content:
Open any
.dartfile in VS Code.Use GitHub Copilot Chat to generate or edit code.
Observe that Copilot does not follow the instructions.
Change the instructions file to:
Repeat step 4.
Observe that Copilot does follow the instructions when
applyTois set to"**".Expected Result:
Copilot should apply instructions when
applyTomatches the current file (**/*.dart).Actual Result:
Copilot appears to ignore instructions when
applyTouses a file-specific glob pattern, but works when using the global pattern"**".