microsoft / DevSkim

DevSkim is a set of IDE plugins, language analyzers, and rules that provide security "linting" capabilities.
MIT License
908 stars 115 forks source link

Tool tips in C# code files in Visual Studio 2022 17.11.0 are not working when DevSkim extension is installed and active #629

Open uo1 opened 2 months ago

uo1 commented 2 months ago

Describe the bug In a Visual Studio 2022 version 17.11.0 installation, when the DevSkim extension is installed and active, the tool tips in C# code files are not shown anymore. When you hover the mouse cursor over a variable, class, property, method or any other code element, no tool tip is shown. It does not matter, if the Visual Studio 2022 was updated from a previous version or if it was freshly installed. It does not matter, if the DevSkim extension was installed before or after the update of Visual Studio 2022 to 17.11.0. Disabling the DevSkim extension and restart Visual Studio 2022 is enough to make the tool tips work again.

To Reproduce Steps to reproduce the behavior:

  1. Install or update Visual Studio 2022 to version 17.11.0
  2. Install DevSkim extension via the Extension Manager, if it was not installed before
  3. Open or create any C# project that doesn't have errors
  4. Open a .cs file with code in it
  5. Hover with the mouse cursor over a variable, class, property, method or any other code element
  6. No tool tip is shown, no matter how long the mouse cursor stays there

Expected behavior The tool tip to the hovered code element should be shown with the typical information

Screenshots I guess is doesn't make sense to add a screenshot if something is not to see

Versions

gfs commented 2 months ago

Thanks for the report. This sounds similar to the bug reported earlier about quick actions. I suspect it may be related to visual studio sdk changes as the extension itself hasn't changed recently.

uo1 commented 2 months ago

Maybe it is related with that quick actions bug. But I didn't have any issues before VS 2022 version 17.11.0. The issue still exists with VS 2022 version 17.11.1.

gfs commented 2 months ago

That's helpful context. Maybe there's something in the patch notes for 17.11.

nodeomega commented 1 month ago

Issue persists in Visual Studio Professional 17.11.3.

Disabling DevSkim's extension brings back my tooltips.