rust-analyzer/crates
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
..
base_db Complete editable private items 2021-07-23 19:57:16 +02:00
cfg internal: add simple smoke test for project model 2021-07-20 16:23:57 +03:00
flycheck internal: a bit more of cwd safety for flycheck 2021-07-17 18:13:35 +03:00
hir Respect #[doc(hidden)] in dot-completion 2021-07-23 15:36:43 +02:00
hir_def fix: Typos 2021-07-27 18:31:21 -04:00
hir_expand Add Limit struct. 2021-07-19 13:26:11 +01:00
hir_ty fix: Typos 2021-07-27 18:31:21 -04:00
ide fix: Revert removing [] from the hover gif 2021-07-28 06:58:19 -04:00
ide_assists Don't qualify self as crate in add_missing_impl_members assist 2021-07-27 19:29:47 +02:00
ide_completion Fix typo 2021-07-24 11:20:40 +03:00
ide_db Don't qualify self as crate in add_missing_impl_members assist 2021-07-27 19:29:47 +02:00
ide_diagnostics Fix some grammar / spelling mistakes 2021-07-26 10:12:41 +02:00
ide_ssr minor: drop dummy authors field 2021-07-05 14:19:41 +03:00
limit Add Limit struct. 2021-07-19 13:26:11 +01:00
mbe minor: drop dummy authors field 2021-07-05 14:19:41 +03:00
parser Fix generic_arg not parsing opt_generic_arg_list properly in arg lists 2021-07-26 15:21:19 +02:00
paths Fix AbsPath::ends_with 2021-07-18 10:25:14 +03:00
proc_macro_api internal: a bit more of cwd safety for flycheck 2021-07-17 18:13:35 +03:00
proc_macro_srv internal: a bit more of cwd safety for flycheck 2021-07-17 18:13:35 +03:00
proc_macro_test cargo_metadata 0.14 2021-07-09 11:01:55 -04:00
profile minor: drop dummy authors field 2021-07-05 14:19:41 +03:00
project_model internal: add simple smoke test for project model 2021-07-20 16:23:57 +03:00
rust-analyzer Merge #9693 2021-07-28 11:21:33 +00:00
sourcegen minor: make sure that project_root works correctly 2021-07-13 15:02:29 +03:00
stdx Remove proc macro management thread 2021-07-08 16:43:39 +02:00
syntax fix: Typos 2021-07-27 18:31:21 -04:00
test_utils Complete editable private items 2021-07-23 19:57:16 +02:00
text_edit minor: drop dummy authors field 2021-07-05 14:19:41 +03:00
toolchain minor: drop dummy authors field 2021-07-05 14:19:41 +03:00
tt minor: drop dummy authors field 2021-07-05 14:19:41 +03:00
vfs internal: make it easier to isolate IO 2021-07-17 17:55:16 +03:00
vfs-notify Bump deps 2021-07-24 11:16:32 +03:00