bors[bot] 068ede0991
Merge #9693
9693: feat: Add the Hover Range capability which enables showing the type of an expression r=matklad a=alexfertel

Closes https://github.com/rust-analyzer/rust-analyzer/issues/389

This PR extends the `textDocument/hover` method to allow getting the type of an expression. It looks like this:

![type_of_expression](https://user-images.githubusercontent.com/22298999/126914293-0ce49a92-545d-4005-a59e-9294fa2330d6.gif)

Edit: One thing I noticed is that when hovering a selection that includes a macro it doesn't work, so maybe this would need a follow-up issue discussing what problem that may have.

(PS: What a great project! I am learning a lot! 🚀)

Co-authored-by: Alexander Gonzalez <alexfertel97@gmail.com>
Co-authored-by: Alexander González <alexfertel97@gmail.com>
2021-07-28 11:21:33 +00:00
..
2021-07-23 19:57:16 +02:00
2021-07-27 18:31:21 -04:00
2021-07-19 13:26:11 +01:00
2021-07-27 18:31:21 -04:00
2021-07-24 11:20:40 +03:00
2021-07-05 14:19:41 +03:00
2021-07-19 13:26:11 +01:00
2021-07-05 14:19:41 +03:00
2021-07-18 10:25:14 +03:00
2021-07-09 11:01:55 -04:00
2021-07-05 14:19:41 +03:00
2021-07-28 11:21:33 +00:00
2021-07-08 16:43:39 +02:00
2021-07-27 18:31:21 -04:00
2021-07-05 14:19:41 +03:00
2021-07-05 14:19:41 +03:00
2021-07-05 14:19:41 +03:00
2021-07-24 11:16:32 +03:00