-
Notifications
You must be signed in to change notification settings - Fork 676
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
Roslyn analyzers quickfix: Add option for Suppress / Suppressions #4595
Comments
Yes please! And this should apply to all analyzers which are installed similar to Visual Studio. Having the ability to suppress at different levels would also be awesome (similar to Visual Studio). 😄 |
@Cosifne Where are we with support for nested actions? If that is still far away, we should consider adding back the 3 Suppression related actions (pragma/local SuppressMessageAttribute/global SuppressMessageAttribute), and keep the longer set of Configuration related actions hidden. |
I haven't heard any progress within the VSCode. |
Looks like it is possible. |
Maybe it would be best to prototype this and see if it is possible, I might not have time this week, can work on this next week |
Environment data
dotnet --info
output: 5.0.203.NET SDK (reflecting any global.json):
Version: 5.0.203
Commit: 383637d63f
Runtime Environment:
OS Name: Windows
OS Version: 10.0.19042
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\5.0.203\
VS Code version: 1.56.2
C# Extension version: 1.23.12
Steps to reproduce
I think this is more a feature request than a bug. I
Type some code that the roslyn analyzer shows the issue and the quickfix bulband shows the quickfix (ctrl+.)
Expected behavior
Show option for suppression (as in visual studio) by pressing (ctrl+.) or clicking the bulb
Actual behavior
Shows only quickfix options to fix the code, but no suppression option.
The text was updated successfully, but these errors were encountered: