formulahendry / vscode-dotnet-test-explorer

.NET Core Test Explorer for Visual Studio Code

Home Page:https://marketplace.visualstudio.com/items?itemName=formulahendry.dotnet-test-explorer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Interaction with Microsoft's C# extension causes error spam

HaraldKorneliussen opened this issue · comments

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.