"Add ... to the import list of ..." Code Action ignores MagicHash
ed identifiers
#660
Labels
component: imports plugin
type: bug
Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Code Action
Add ... to the import list of ...
won't appear, if the missing symbol is suffixed with#
withMagicHash
extension enabled.Your environment
Output of
haskell-language-server --probe-tools
orhaskell-language-server-wrapper --probe-tools
:Which lsp-client do you use: VSCode
Describe your project (alternative: link to the project): irrelevant to the particular project structure
Contents of
hie.yaml
: a single file suffices and no cradle file needed.Steps to reproduce
Save the following as
Main.hs
(or whatever):HLS (correctly) highlights
proxy#
, which is undefined symbol so far.Open the code actions for
proxy#
.Expected behaviour
HLS should suggest
Add proxy# to the import list of GHC.Exts
Actual behaviour
Even though HLS detects definition site of
proxy#
correctly, it lacksAdd to the import list
!Include debug information
Execute in the root of your project the command
haskell-language-server --debug .
and paste the logs here:Debug output:
Paste the logs from the lsp-client, e.g. for VS Code
LSP logs:
The text was updated successfully, but these errors were encountered: