Skip to content

Disabling "explicit imports code lenses" does not seem to work #2098

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
edsko opened this issue Aug 16, 2021 · 2 comments
Closed

Disabling "explicit imports code lenses" does not seem to work #2098

edsko opened this issue Aug 16, 2021 · 2 comments

Comments

@edsko
Copy link

edsko commented Aug 16, 2021

Your environment

Output of haskell-language-server --probe-tools or haskell-language-server-wrapper --probe-tools:

haskell-language-server version: 1.3.0.0 (GHC: 8.10.4) (PATH: /home/edsko/.ghcup/bin/haskell-language-server-wrapper-1.3.0) (GIT hash: e7c5e90b6df5dff2760d76169eddaea3bdd6a831)
Tool versions found on the $PATH
cabal:		3.4.0.0
stack:		2.7.3
ghc:		8.8.4

Which OS do you use:
Ubuntu
Which lsp-client do you use:
vscode
Describe your project (alternative: link to the project):
https://github.com/well-typed/large-records (cabal file, cabal project file)
Contents of hie.yaml:
Don't use one

Steps to reproduce

When "Enables explicit imports code lenses" is enabled, the import section of my example looks like

image

After disabling, it looks like

image

Expected behaviour

I'd not expect to see any import lenses anymore (but maybe I'm misunderstanding the setting?).

Actual behaviour

Some import lenses are gone, but not all.

@edsko
Copy link
Author

edsko commented Aug 16, 2021

Actually, this is probably a vscode integration issue, rather than a HLS issue. Will reopen in the appropriate repo.

@pepeiborra
Copy link
Collaborator

The lenses you are seeing now are created by a different plugin: refine imports

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants