News for hackers. Stuff that matters.
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.
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...

Re:Rust-Analyzer Architecture by matklad on Thursday February 04, 2021 @05:14PM (#26030415)
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.
Re:Rust-Analyzer Architecture by CryZe on Thursday February 04, 2021 @04:16PM (#26029900)
Works in VSCode too, not sure what specifically their problem is.
Re:Rust-Analyzer Architecture by the_duke on Thursday February 04, 2021 @12:47PM (#26027799)
With inline hints you can get something somewhat similar, although they can get very annoying with complex types. But extremely useful in long method chains.