-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Some commonly-reported diagnostic results at suggestion level cannot be disabled #69829
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
In what scope do you want to disable it? how about using globalconfig? |
@huoyaoyuan I just want to disable it in this file... |
This is a duplicate of https://developercommunity.visualstudio.com/t/SuppressMessage-attribute-is-being-ign/10439130. |
Thank you! |
Version Used:
VS 17.8p1
Steps to Reproduce:
Diagnostic Id:
Some diagnostic results at suggestion level (Maybe result IDs starting with
IDE
likeIDE0060
? I don't test for all diagnostic results, but some commonly-reported can be reproduced, e.g. IDE0051, IDE0060, IDE0011 and so on).Expected Behavior:
If I use
SuppressMessageAttribute
and#pragma warning disable
, the suggestions can be disabled and no longer be displayed.Actual Behavior:
It is still displayed no matter how I disable them:
The text was updated successfully, but these errors were encountered: