diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-03-13 13:50:35 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-03-13 13:50:35 +0000 |
commit | 7accf6bc37c059a83a58c82f463f02a02ed2226f (patch) | |
tree | 979c8ebe39bde9c989cb1a09f06cea4cf7cb04ac /crates/rust-analyzer/src/main_loop.rs | |
parent | 9674490b45a931399a9a05cd3a4c7e8fae9ec2a8 (diff) | |
parent | 49cdb2452a225dec3834e69fb011c3d7e68084f7 (diff) |
Merge #7799
7799: Related tests r=matklad a=vsrs
![tests](https://user-images.githubusercontent.com/62505555/109397453-a9013680-7947-11eb-8b11-ac03079f7645.gif)
This adds an ability to look for tests for the item under the cursor: function, constant, data type, etc
The LSP part is bound to change. But the feature itself already works and I'm looking for a feedback :)
Co-authored-by: vsrs <[email protected]>
Diffstat (limited to 'crates/rust-analyzer/src/main_loop.rs')
-rw-r--r-- | crates/rust-analyzer/src/main_loop.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/rust-analyzer/src/main_loop.rs b/crates/rust-analyzer/src/main_loop.rs index f0cb309e4..984790d35 100644 --- a/crates/rust-analyzer/src/main_loop.rs +++ b/crates/rust-analyzer/src/main_loop.rs | |||
@@ -500,6 +500,7 @@ impl GlobalState { | |||
500 | .on::<lsp_ext::ExpandMacro>(handlers::handle_expand_macro) | 500 | .on::<lsp_ext::ExpandMacro>(handlers::handle_expand_macro) |
501 | .on::<lsp_ext::ParentModule>(handlers::handle_parent_module) | 501 | .on::<lsp_ext::ParentModule>(handlers::handle_parent_module) |
502 | .on::<lsp_ext::Runnables>(handlers::handle_runnables) | 502 | .on::<lsp_ext::Runnables>(handlers::handle_runnables) |
503 | .on::<lsp_ext::RelatedTests>(handlers::handle_related_tests) | ||
503 | .on::<lsp_ext::InlayHints>(handlers::handle_inlay_hints) | 504 | .on::<lsp_ext::InlayHints>(handlers::handle_inlay_hints) |
504 | .on::<lsp_ext::CodeActionRequest>(handlers::handle_code_action) | 505 | .on::<lsp_ext::CodeActionRequest>(handlers::handle_code_action) |
505 | .on::<lsp_ext::CodeActionResolveRequest>(handlers::handle_code_action_resolve) | 506 | .on::<lsp_ext::CodeActionResolveRequest>(handlers::handle_code_action_resolve) |