formulahendry / vscode-dotnet-test-explorer

.NET Core Test Explorer for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=formulahendry.dotnet-test-explorer
MIT License
204 stars 97 forks source link

Interaction with Microsoft's C# extension causes error spam #391

Open HaraldKorneliussen opened 10 months ago

HaraldKorneliussen commented 10 months ago

When a test fails and is added to the Problems tab with red squiggles below, this seems to confuse Microsoft's official C# extension. Whenever I hover over one of the test errors reported by this extension, the C# extension pops up with

[Error - 09:48:50] Request textDocument/codeAction failed. Message: span Code: -32000 [object Object]

This is probably really the fault of Microsoft's C# extension, but since it's such a widespread extension maybe it could still be worked around on your end. From the looks of it, I think it's trying to suggest a code action, but gets confused by the way this extension reports the test errors somehow - I do notice the red squiggles go from the start of the line, including indents.