You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your enhancement request related to a problem? Please describe.
When I have an out of scope error:
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.
This means I frequently end up importing the former instead of the latter and then having to change it.
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.
The text was updated successfully, but these errors were encountered:
and ideally should have some sort of visual indication that they are deprecated.
LSP spec has this, actually. Either via deprecated CompletionItem.deprecated or the recommended way by putting CompletionItemTag.Deprecated into CompletionItem.tags list. I guess it should be trivial change if deprecation info is easily available from Haskell side of things in HLS.
Nevermind, I thought it was about completions.
MatthewDaggitt
changed the title
Don't suggest deprecated modules in Quick fix
Deprioritise deprecated modules in Quick fix suggestions
Mar 28, 2024
Is your enhancement request related to a problem? Please describe.
When I have an out of scope error:
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 thatMonad.Control.Error
is deprecated in favour ofMonad.Control.Except
.This means I frequently end up importing the former instead of the latter and then having to change it.
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.
The text was updated successfully, but these errors were encountered: