-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Implement inlay hint location links #11701
Copy link
Copy link
Closed
Labels
A-inlay-hintsinlay/inline hintsinlay/inline hintsC-featureCategory: feature requestCategory: feature requestS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right nowfunA technically challenging issue with high impactA technically challenging issue with high impact
Metadata
Metadata
Assignees
Labels
A-inlay-hintsinlay/inline hintsinlay/inline hintsC-featureCategory: feature requestCategory: feature requestS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right nowfunA technically challenging issue with high impactA technically challenging issue with high impact
Type
Fields
Give feedbackNo fields configured for issues without a type.
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
HirDisplayto render the display representation of types which doesn't allow introspection into each part. We probably need a proper type visitor api here.