Skip to content

Instruction files not applied #249094

Open
Open
@Thiht

Description

@Thiht

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

  • VS Code Version: 1.100.2
  • OS Version: macOS Sequoia 15.4.1

Steps to Reproduce:

  1. Create an instructions file .github/instructions/unit-tests.instructions.md with the following content:
---
applyTo: '**/*.go'
---

# General instructions regarding unit tests

- Add `t.Parallel()` at the beginning of each test function
  1. From a Go file inside a function: right click -> Copilot -> Generate Tests
  2. The generated test doesn't contain t.Parallel()

When I click "View in Chat", the instructions file is not added to the context.

Relevant settings:

{
"chat.instructionsFilesLocations": {
  ".github/instructions": true
}

"github.copilot.chat.codeGeneration.useInstructionFiles": true
}

I would expect my instructions to be added automatically because of the applyTo.

Metadata

Metadata

Assignees

Labels

promptsPrompt and Instruction files related issues

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions