-
Notifications
You must be signed in to change notification settings - Fork 12
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
Once a rule is suppressed, it remains as shown in current document #142
Comments
Hi - I’m about to go to bed (am in Australia), but will have a proper look at this tomorrow morning :) |
From what I remember, you send all diagnostics for a given document each time. So all diagnostics for a given document URI replace any existing diagnostics for that document URI. Does that help? |
(i.e. if there are no no diagnostics, send an empty list of diagnostics for that document) |
@tintoy I would say that the problem is more on how to get the diagnostics check to run again for the opened documents after the settings have been saved. |
@AdmiringWorm this is sort of where I thought this would come in: i.e. once we know that the suppression rules have changed, clear the diagnostics out, and then run the checks again. |
My configuration handler has a hookable event which various other bits and pieces use to react to configuration changes. That might give you what you're after :) |
Steps to reproduce:
CHOCO0001
As a result of changing suppressed rules, I think we need to clear the current diagnostics, and resubmit them. There is code for doing this in @tintoy repository for MSBuild Diagnostic Handler, so may be able to lean on what was done there.
The text was updated successfully, but these errors were encountered: