Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix regression for suppressed diagnostics in Suggestion diagnostics tagger #69492

Merged
merged 1 commit into from
Aug 14, 2023

Conversation

mavasani
Copy link
Contributor

@mavasani mavasani commented Aug 14, 2023

Fixes AB#1869759

This regressed with #68287, which enabled IDE0079 for LSP clients.

Testing

  • I verified that the customer repro attached to the feedback ticket is fixed with this change.
  • I verified that the SuggestionTagTest1 failed with isSuppressed = true prior to the product change in this PR.
  • I have also enhanced DiagnosticSquiggleTaggerProvider tests to validate the isSuppressed = true scenario, though those tests pass without the product change as that tagger provider already bailed out for suppressed diagnostics.

…agger

Fixes [AB#1869759](https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1869759)

This regressed with dotnet#68287, which enabled IDE0079 for LSP clients.

I verified that the `SuggestionTagTest1` failed with `isSuppressed = true` prior to the product change in this PR. I also enhanced the DiagnosticSquiggleTaggerProvider test to validate the `isSuppressed = true` scenario, though those tests pass without the product change as that tagger provider already bailed out for suppressed diagnostics.
@mavasani mavasani requested a review from a team as a code owner August 14, 2023 09:42
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Analyzers untriaged Issues and PRs which have not yet been triaged by a lead labels Aug 14, 2023
@@ -113,7 +116,7 @@ protected sealed override ITaggerEventSource CreateEventSource(ITextView? textVi

foreach (var diagnosticData in diagnostics)
{
if (_callback.IncludeDiagnostic(diagnosticData))
if (_callback.IncludeDiagnostic(diagnosticData) && !diagnosticData.IsSuppressed)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the product fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Analyzers untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants