Skip to content

Implement inlay hint location links #11701

@Veykril

Description

@Veykril

The inlay hint api allows to split the hints into parts backed by links, we should make use of this.

https://github.com/rust-analyzer/rust-analyzer/blob/5e8515870674983cce5b945946045bc1e9b80200/crates/rust-analyzer/src/lsp_ext.rs#L273-L283

The main difficulty here is that we currently use HirDisplay to render the display representation of types which doesn't allow introspection into each part. We probably need a proper type visitor api here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-inlay-hintsinlay/inline hintsC-featureCategory: feature requestS-actionableSomeone could pick this issue up and work on it right nowfunA technically challenging issue with high impact

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions