Skip to content

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

@edsko

Description

@edsko

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions