Fix for issue 46942. VSIX suppressors do not run when Nuget analyzers / suppressors are installed.#47486
Fix for issue 46942. VSIX suppressors do not run when Nuget analyzers / suppressors are installed.#47486mavasani merged 6 commits intodotnet:masterfrom nschuessler:nschuessler/issue46942
Conversation
src/Workspaces/Core/Portable/Diagnostics/SkippedHostAnalyzersInfo.cs
Outdated
Show resolved
Hide resolved
src/Workspaces/Core/Portable/Diagnostics/SkippedHostAnalyzersInfo.cs
Outdated
Show resolved
Hide resolved
src/Workspaces/Core/Portable/Diagnostics/SkippedHostAnalyzersInfo.cs
Outdated
Show resolved
Hide resolved
...torFeatures/CSharpTest/Diagnostics/DiagnosticAnalyzerDriver/DiagnosticAnalyzerDriverTests.cs
Show resolved
Hide resolved
...torFeatures/CSharpTest/Diagnostics/DiagnosticAnalyzerDriver/DiagnosticAnalyzerDriverTests.cs
Outdated
Show resolved
Hide resolved
...torFeatures/CSharpTest/Diagnostics/DiagnosticAnalyzerDriver/DiagnosticAnalyzerDriverTests.cs
Outdated
Show resolved
Hide resolved
mavasani
left a comment
There was a problem hiding this comment.
Overall looks pretty good to me. Lets simplify further to only execute host suppressors if they have no overlap with any nuget suppressor/analyzer IDs.
|
@mavasani I'm not sure what is causing the CI failures above, it doesn't look like me unless my changes somehow affect integration testing. I have merged from |
|
Tagging @dotnet/roslyn-compiler for test-only changes to |
...torFeatures/CSharpTest/Diagnostics/DiagnosticAnalyzerDriver/DiagnosticAnalyzerDriverTests.cs
Outdated
Show resolved
Hide resolved
cston
left a comment
There was a problem hiding this comment.
DiagnosticDescription changes LGTM.
|
Hello @mavasani! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
The fix is to explicitly handle suppressors on the host and analyzer side, and allow them when they suppress a diagnostic not handled on the nuget installed side.
Mention @sharwell @mavasani @kykwo
Fixes issue 46942
Hoping to get this in 16.8 preview +