Re:Rust-Analyzer Architecture
by monadic3 on Thursday February 04, 2021 @12:06PM
(#26027310)
Still waiting on my favorite jetbrains feature—show type of selected expression. Probably the single most used IDE feature in my toolbox when I used scala.
[ Parent
| on HN ]
Re:Rust-Analyzer Architecture
by ibraheemdev on Thursday February 04, 2021 @12:28PM
(#26027562)
It looks like this is blocked upstream by the language server protocol not passing the current selection for hover requests [0].
0: https://github.com/microsoft/language-server-protocol/issues...
FWIW, this should be relatively easy to implement. Looking at all the pieces which implement https://github.com/rust-analyzer/rust-analyzer/blob/master/d... should given enough knowledge to do this.
Re:Rust-Analyzer Architecture
by Nullabillity on Thursday February 04, 2021 @01:48PM
(#26028491)
At least in Emacs, it shows the type as a tooltip if I hover over the closing paren of a function call.
Works in VSCode too, not sure what specifically their problem is.