-
Notifications
You must be signed in to change notification settings - Fork 426
Labels
Description
I'm using a pack of Roslyn Analyzers built from:
https://github.com/microsoft/Microsoft.Unity.Analyzers
On a Unity project (Game engine) available here:
https://learn.unity.com/project/roll-a-ball-tutorial
Omnisharp is able to correctly consume regular Analyzers (see UNT0009
). But Diagnostic suppressors are not supported:
"Private member 'ReadmeEditor.Awake' is unused. [Assembly-CSharp-Editor]"
This message is correctly suppressed in the VS context, but not within VSCode.
The code for this suppressor is here:
https://github.com/microsoft/Microsoft.Unity.Analyzers/blob/master/src/Microsoft.Unity.Analyzers/UnusedMessageSuppressor.cs
The Roslyn team added a new API regarding programmatic suppression of diagnostics:
dotnet/roslyn#36067
terrehbyte, stijnherreman, MrFoxPro, SirIntruder, GabbeV and 9 more