Skip to content

Deprioritise deprecated modules in Quick fix suggestions #4154

Closed as not planned
@MatthewDaggitt

Description

@MatthewDaggitt

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

When I have an out of scope error:

image

then the quick fix doesn't take into account whether a module is deprecated or not. For example, here Monad.Control.Error is the top hit in the list despite the fact that Monad.Control.Error is deprecated in favour of Monad.Control.Except.

image

This means I frequently end up importing the former instead of the latter and then having to change it.

image

Describe the solution you'd like

Deprecated modules should appear at the bottom of the suggestions list, and ideally should have some sort of visual indication that they are deprecated.

Describe alternatives you've considered

None.

Additional context

None.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions