Skip to content

Abbreviate explicit import code lenses #2765

Closed
@michaelpj

Description

@michaelpj

It's cool that the code lens shows the code that will be present after the change, but for imports that import a lot of things, the resulting code lens is massive. In some cases I've had it occupy most of or all of my editor's viewport, which is pretty annoying. This also causes problems in some clients that don't deal so well with massive code lenses (e.g. emacs-lsp/lsp-haskell#137).

I hypothesise that nobody really needs to see exactly what's going to be inserted by this code lens. I think it could be abbreviated:

  • Radically, just show "Make this import fully explicit"
  • Less radically, show "import Foo (<49 items>)" or something

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions