-
Notifications
You must be signed in to change notification settings - Fork 686
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
Diagnostics of info/suggestion level severity are ignored by Problems pane and shortcuts #6723
Comments
Thank you for posting I have exactly the same issue and thought I was the only one. I am also using latest bits on Apple silicon. |
So currently this is by design. Originally we reported info/suggestion diagnostics using VSCode's 'Info' level diagnostic. This turns them into blue squiggles and they show up in the problems window. However, we got a number of complaints about it being too noisy, so we ended up changing the server to report them under VSCode's 'Hint' severity. This renders them as 3 dots in the editor, but does not show them in the problems window. See dotnet/roslyn#69403 Unfortunately we don't have any more control over the rendering in VSCode, those are our two choices. One potential option is to add a setting to configure how to display info/suggestion diagnostics (cc @mavasani). Going to leave this issue open for now to collect feedback - if the current behavior is bothersome, leave an upvote. |
I disagree with this decision. Using the problems window allows navigation to the file to fix the INFO. I can also filter to see a certain INFO to work on formatting for example. How do I do that now? If other people find it too noisy, they can turn off the INFO in |
Me again. |
Makes sense and I agree with the sentiment.
Sounds ideal. |
"Too noisy" is subjective so a setting would be great in vscode . |
@dibarbet Please could you label this O# parity since the only way to get the functionality back is to revert to Omnisharp? 🙏 |
The correct way for this to have been fixed, would have been to connect the Silent diagnostic level to VSCode's 'Hint' severity, if this wasn't already done so, and to then tell those complaining users to properly configure their code analysis rules to map the rules that they're offended by to the Silent level via e.g. A major usage of configuring rulesets with rules at the informational level is so you can have a central overview of rules you'd like to see fixed, but that don't have to be fixed before finishing up a unit of work and merging back a pull request. You can then configure a build server that gates completion of a PR to build with 'treat warnings as errors' and prevent completion of work where certain violations must be fixed first, without those same violations leading to compiler errors during development on the developer's local machine. (Where 'treat warnings as errors' can simply be left off.) Right now-- the option of having that granular partitioning went entirely out the window. |
I was surprised today when I discovered this. I'm writing an analyzer that reports info diagnostics. |
Its a year since someone mapped info to hint because a few ppl reported unwanted squiggles. Please can we at least revert this change until a better solution comes up. |
For VSCode we were adjusting information diagnostics severity so that they would be reported as hints. We are moving this behavior to the client and allowing users to opt-in. Client-side PR: dotnet/vscode-csharp#7984 Part of dotnet/vscode-csharp#6723
Type: Bug
Issue Description
Diagnostics of info/suggestion level severity (ie not error or warning) are ignored by Problems pane and shortcuts.
This use to work with Omnisharp but not with the new system.
I have checked the filter in the Problems pane and Info is enabled.
Steps to Reproduce
Expected Behavior
Suggestions are shown the in Problems pane. Problems shortcuts should also cycle over them.
Actual Behavior
They are ignored.
Environment information
VSCode version: 1.81.1
C# Extension: 2.12.19
Using OmniSharp: false
Dotnet Information
.NET SDK: Version: 7.0.400 Commit: 73bf45718dRuntime Environment:
OS Name: Mac OS X
OS Version: 14.1
OS Platform: Darwin
RID: osx-arm64
Base Path: /usr/local/share/dotnet/sdk/7.0.400/
Host:
Version: 7.0.10
Architecture: arm64
Commit: a6dbb800a4
.NET SDKs installed:
7.0.306 [/usr/local/share/dotnet/sdk]
7.0.400 [/usr/local/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 7.0.9 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.10 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 7.0.9 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.10 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
Not set
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
Visual Studio Code Extensions
Extension version: 2.12.19
VS Code version: Code 1.81.1 (Universal) (6c3e3dba23e8fadc360aed75ce363ba185c49794, 2023-08-09T22:20:33.924Z)
OS version: Darwin arm64 23.1.0
Modes:
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
The text was updated successfully, but these errors were encountered: