microsoft / DevSkim

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

Quick actions (lightbulb) does not auto select the first suggestion #623

Open HEGIT-TBL opened 4 months ago

HEGIT-TBL commented 4 months ago

Describe the bug Using the quick actions (lightbulb) shortcut with the Devskim Visual Studio extension enabled does not automatically select the first suggestion.

To Reproduce Steps to reproduce the behavior:

  1. Install or Enable Devskim VS extension
  2. Open any C# file in Visual Studio
  3. Put the caret on a line of code
  4. Press quick actions shortcut (default shortcuts are Alt + Enter and Ctrl + . )
  5. The first suggestion is not selected

Expected behavior Using quick actions (lightbulb) shortcut should select the first suggestion automatically

Screenshots

Extension disabled: image

Extension enabled: image

Versions(please complete the following information):

gfs commented 4 months ago

Thanks for the report. I'll try to reproduce and see what may be causing DevSkim to interfere with the default selection here.