rust/crates/ide/src
bors[bot] 1cc73d60bb
Merge #7068
7068: Add VSCode command to view the hir of a function body r=theotherphil a=theotherphil

Will fix https://github.com/rust-analyzer/rust-analyzer/issues/7061. Very rough initial version just to work out where I needed to wire everything up.

@matklad would you be happy merging a hir visualiser of some kind? If so, do you have any thoughts on what you'd like it show, and how?

I've spent very little time on this thus far, so I'm fine with throwing away the contents of this PR, but I want to avoid taking the time to make this more polished/interactive/useful only to discover that no-one else has any interest in this functionality.

![image](https://user-images.githubusercontent.com/1974256/103236081-bb58f700-493b-11eb-9d12-55ae1b870f8f.png)


Co-authored-by: Phil Ellison <phil.j.ellison@gmail.com>
2021-01-03 09:03:15 +00:00
..
diagnostics source_old -> source for cases that can be handled by simple bubbling 2021-01-02 21:53:52 +11:00
display Fix ConstParam HasSource impl and implement TryToNav not Nav 2021-01-02 22:11:25 +11:00
references Merge #7030 2020-12-24 14:46:41 +00:00
syntax_highlighting Formatting. 2021-01-01 17:31:32 +01:00
typing Re-export base_db from ide_db 2020-10-24 11:39:57 +03:00
call_hierarchy.rs Move impls of ToNav that use source() to TryToNav 2021-01-02 21:53:52 +11:00
diagnostics.rs test for new behavior 2020-12-29 22:52:47 -07:00
display.rs Don't expose SyntaxKind from IDE API 2020-12-18 19:28:48 +03:00
doc_links.rs Add ConstParams to the ide layer 2021-01-01 14:43:16 +01:00
expand_macro.rs rename mock_analysis -> fixture 2020-10-02 17:49:44 +02:00
extend_selection.rs Node-ify lifetimes 2020-12-16 14:16:09 +01:00
file_structure.rs Don't expose SyntaxKind from IDE API 2020-12-18 19:28:48 +03:00
fixture.rs Re-export base_db from ide_db 2020-10-24 11:39:57 +03:00
fn_references.rs Add **Ignore Test** assist 2020-11-17 14:22:04 +01:00
folding_ranges.rs Use items can also have doc comments 2020-12-04 17:09:40 +01:00
goto_definition.rs Merge #7030 2020-12-24 14:46:41 +00:00
goto_implementation.rs Move impls of ToNav that use source() to TryToNav 2021-01-02 21:53:52 +11:00
goto_type_definition.rs Move impls of ToNav that use source() to TryToNav 2021-01-02 21:53:52 +11:00
hover.rs Move impls of ToNav that use source() to TryToNav 2021-01-02 21:53:52 +11:00
inlay_hints.rs Move the helpers into ide_db 2020-11-28 16:30:39 +02:00
join_lines.rs Remove more unreachable pubs 2020-11-02 16:58:33 +01:00
lib.rs Merge #7068 2021-01-03 09:03:15 +00:00
markdown_remove.rs Remove more unreachable pubs 2020-11-02 16:58:33 +01:00
markup.rs Rename ra_ide -> ide 2020-08-13 17:58:27 +02:00
matching_brace.rs Remove more unreachable pubs 2020-11-02 16:58:33 +01:00
parent_module.rs Don't expose SyntaxKind from IDE API 2020-12-18 19:28:48 +03:00
prime_caches.rs Re-export base_db from ide_db 2020-10-24 11:39:57 +03:00
references.rs Add ConstParams to the ide layer 2021-01-01 14:43:16 +01:00
runnables.rs Add support for Rust 2021. 2021-01-01 17:22:23 +01:00
status.rs Use ExpandResult instead of MacroResult 2020-11-26 16:48:17 +01:00
syntax_highlighting.rs Add ConstParams to the ide layer 2021-01-01 14:43:16 +01:00
syntax_tree.rs Kill RAW_ literals 2020-11-06 22:23:14 +01:00
typing.rs Re-export base_db from ide_db 2020-10-24 11:39:57 +03:00
view_hir.rs Address review suggestion, fix tidy tests 2021-01-01 19:25:18 +00:00