Skip to content

"disable warning" gets ordered high in the fix list #3238

Closed
@lf-

Description

@lf-

Is your enhancement request related to a problem? Please describe.

When I hit the code action button on unused imports, the "Disable [x] warnings" option is very high up, despite rarely being the right code action to fix the problem at hand. More generally it seems that the disable warning action is always high up on every warning.

image

Describe the solution you'd like

I would like the most appropriate fix to be first, so I can hit the "fix-first-suggestion" button in my editor to fix my imports. For instance, in this case, the first action should be deleting the unused imports on the current line.

Describe alternatives you've considered

Additional context

Reproduced on 1.7.0.0 but I'm 90% sure it's also a problem on 1.8.0.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions