microsoft / microsoft/DevSkim

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

Open
#623 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C#
Stars
1k
Forks
131
Avg merge
1m
Merged PRs (30d)
1

Description

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):

  • OS: Windows 10 Pro version 22H2
  • Visual Studio: 2022 Enterprise, version 17.10.3
  • Devskim Extension Version: 1.0.33.40378

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in Visual Studio 2022 17.10.3 with DevSkim extension version 1.0.33.40378, following the listed quick-actions steps on a C# file. Trace the DevSkim Visual Studio extension's quick-actions integration and compare behavior with the extension disabled. Done means the first suggestion is selected when the shortcut is used while the extension is enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.