Skip to content

Commit 35d9952

Browse files
authored
Tell copilot to prefer cohosting tests for tooling (#12412)
Jared rightly pointed out that I keep having to tell CCA where to put tests. If we add it to copilot-instructions.md, then at least there will be a formal place it can continue to ignore and put things wherever it wants and I'm not jaded at all why do you ask?
2 parents 84f0e9e + 4fbaa03 commit 35d9952

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/copilot-instructions.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ Razor documents contain multiple languages:
4646
- Prefer raw string literals over verbatim strings
4747
- Ideally we test the end user scenario, not implementation details
4848
- Consider cross-platform compatibility by testing path handling and case sensitivity where applicable
49+
- For tooling, "Cohosting" is the new architecture we're moving towards, so always create tests in the src\Razor\test\Microsoft.VisualStudioCode.RazorExtension.Test project
4950

5051
### Architecture Considerations
5152

@@ -57,7 +58,7 @@ Razor documents contain multiple languages:
5758
## Build and Development
5859

5960
### Prerequisites
60-
- .NET 8.0+ SDK (latest version specified in `global.json`)
61+
- .NET 9.0+ SDK (latest version specified in `global.json`)
6162
- Visual Studio 2026 (Windows) or VS Code with C# extension (Windows, macOS or Linux)
6263
- PowerShell (for Windows build scripts)
6364

0 commit comments

Comments
 (0)