Skip to content

Commit e42cd30

Browse files
authored
Move shared tests to VS Code project (#12328)
Copilot seems very reluctant to read our instructions file, and loves running dotnet test on the specific project that it made/modified tests in. A lot of the cohosting tests are shared between VS and VS Code, so will happily run on the Linux images that Copilot uses, but because the physical files are in the VS project, every time Copilot tries to run them, it can't because thats a .NET Framework project. Eventually when we clean up the LSP and legacy editors we can move things around and stop using shared files, but until then having the files physically in the VS Code project, and shared across to VS, rather than the opposite, should hopefully mean Copilot falls into the pit of success a little more easily.
2 parents f63acaa + 91f2598 commit e42cd30

18 files changed

+2
-1
lines changed

src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Microsoft.VisualStudio.LanguageServices.Razor.Test.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
<Compile Include="..\Microsoft.CodeAnalysis.Razor.Workspaces.Test\Shared\**\*.cs">
1515
<Link>Shared\%(RecursiveDir)%(FileName)%(Extension)</Link>
1616
</Compile>
17+
18+
<Compile Include="..\Microsoft.VisualStudioCode.RazorExtension.Test\Endpoints\Shared\*.cs" LinkBase="Cohost\Shared" />
1719
</ItemGroup>
1820

1921
<ItemGroup>

0 commit comments

Comments
 (0)