rust/crates/rust-analyzer/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
..
bin Make config.rs a single source of truth for configuration. 2020-12-08 19:25:41 +03:00
cli Only log path and syntax range when processing function if source exists 2021-01-02 21:53:52 +11:00
diagnostics Filter out empty rustc spans 2020-12-21 15:38:27 +01:00
caps.rs Implement workspace/willRenameFiles for single-level file moves 2020-12-23 07:47:31 -05:00
cargo_target_spec.rs Open Cargo.toml opens more specific manifest 2020-12-08 16:28:21 +03:00
cli.rs Move print_memory_usage to cli.rs 2020-12-11 18:24:27 +01:00
config.rs Fix warnings on rust-nightly 2021-01-02 20:48:39 +01:00
diagnostics.rs Align diagnostics config with the rest of rust-analyzer 2020-08-18 16:03:15 +02:00
diff.rs Split textDocument/formatting TextEdit with diff 2020-12-31 15:33:20 +01:00
dispatch.rs Respond with JSON-RPC error if we failed to deserialize request 2020-10-30 19:57:52 +01:00
document.rs Latest LSP 3.16 protocol 2020-11-16 15:10:13 -05:00
from_proto.rs Re-export base_db from ide_db 2020-10-24 11:39:57 +03:00
global_state.rs Introduce anchored_path 2020-12-09 19:07:05 +03:00
handlers.rs Merge #7068 2021-01-03 09:03:15 +00:00
lib.rs Merge #7106 2020-12-31 15:11:14 +00:00
line_endings.rs Simplify 2020-06-28 01:30:45 +03:00
lsp_ext.rs Initial implementation of view-hir command 2020-12-28 18:29:58 +00:00
lsp_utils.rs Simplify 2020-12-07 23:41:08 +02:00
main_loop.rs Initial implementation of view-hir command 2020-12-28 18:29:58 +00:00
markdown.rs Formatting. 2021-01-01 17:31:32 +01:00
reload.rs Remove dummy ProcMacroClient in favor of Option 2020-12-07 17:16:50 +01:00
request_metrics.rs Flatten module hierarchy 2020-06-24 18:57:30 +02:00
semantic_tokens.rs Add ConstParams to the ide layer 2021-01-01 14:43:16 +01:00
thread_pool.rs Improve prime_caches and display its progress 2020-10-12 13:35:01 +02:00
to_proto.rs Add ConstParams to the ide layer 2021-01-01 14:43:16 +01:00