I use HLS in Emacs and I’m trying to understand where some features that I used to use have gone. I don’t know if HLS has removed those features or if Emacs has stopped giving me access to them. The features are
- When a name is not in scope, offer to import it from a module it is defined in (even if that module is not yet imported). I think the set of modules it considered was all modules in all packages that the current project depends on.
- Fill a typed hole with an expression of a matching type.
I used to access the features through C-c /
(lsp-execute-code-action
). Now I just get unhelpful options, such as “defer errors about missing names” (which I definitely don’t want). Maybe hole fits were disabled a long time ago? Or maybe not, because I see “Wingman tactics” as an enabled plugin under customize-group
of lsp-haskell-plugins
.
It’s also possible I’ve got a too old version of the lsp-haskell
mode for Emacs (I’m on 3249cde
from one year one month ago). But I don’t know. I’m just confused.
Can anyone shed any light?