dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
18.95k stars 4.02k forks source link

Code generator DiagnosticDescriptor Category not shown in Visual Studio Error List #62720

Open tonyhallett opened 2 years ago

tonyhallett commented 2 years ago

Microsoft.CodeAnalysis.Analyzers 3.3.3 Microsft.CodeAnalysis.CSharp 4.2.0

Visual Studio 17.1.0

Steps to Reproduce:

context.ReportDiagnostic with diagnostic from Diagnostic.Create with DiagnosticDescriptor with category.

Expected Behavior: custom category is shown Actual Behavior:

image

Youssef1313 commented 2 years ago

@mavasani I believe you had a PR that fixes this for compilation-end diagnostics. Does it fix it for generators too?

Youssef1313 commented 2 years ago

https://github.com/dotnet/roslyn/pull/58409