Skip to content

Inlay hint as import lens alternative #4208

Closed
@michaelpj

Description

@michaelpj

Is your enhancement request related to a problem? Please describe.

At the moment, the explicit import code lenses are quite noisy. Often they take up one line for each line of the import block, doubling its length in the editor.

e.g.

<lens> import Foo (Bar, Baz)
import Foo

Describe the solution you'd like

Use inlay hints, like so:

import Foo <hint begins>(Bar, Baz)<hint ends>

Additional context

We can only do this if the client supports inlay hints, so we need to decide based on the client capabilities whether to offer the inlay hints or the lenses as a fallback. I think we probably don't need to make it configurable, since I think the inlay hints will just be superior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions