diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-03-22 13:08:45 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-03-22 13:08:45 +0000 |
commit | d4fa6721afacec78a750df1bb1f0e7e950eaf73c (patch) | |
tree | efabf84f708868484e0dac7893f77ddfba6d9c21 /crates/rust-analyzer/src/main_loop.rs | |
parent | 3af1885bd2c4d3470d203a216488946ee8572970 (diff) | |
parent | d331155f8db056a0f7a406498c96f759f620d2c7 (diff) |
Merge #8054
8054: Item movers r=matklad a=ivan770
Closes #6823
https://user-images.githubusercontent.com/14003886/111331579-b4f43480-8679-11eb-9af0-e4dabacc4923.mp4
Implementation issues:
- [ ] Most of items are non-movable, since _movability_ of any item has to be determined manually. Common ones are movable though
- [x] Cursor should move with the item
Co-authored-by: ivan770 <[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 c63a0eaea..e88f16cc1 100644 --- a/crates/rust-analyzer/src/main_loop.rs +++ b/crates/rust-analyzer/src/main_loop.rs | |||
@@ -504,6 +504,7 @@ impl GlobalState { | |||
504 | .on::<lsp_ext::HoverRequest>(handlers::handle_hover) | 504 | .on::<lsp_ext::HoverRequest>(handlers::handle_hover) |
505 | .on::<lsp_ext::ExternalDocs>(handlers::handle_open_docs) | 505 | .on::<lsp_ext::ExternalDocs>(handlers::handle_open_docs) |
506 | .on::<lsp_ext::OpenCargoToml>(handlers::handle_open_cargo_toml) | 506 | .on::<lsp_ext::OpenCargoToml>(handlers::handle_open_cargo_toml) |
507 | .on::<lsp_ext::MoveItem>(handlers::handle_move_item) | ||
507 | .on::<lsp_types::request::OnTypeFormatting>(handlers::handle_on_type_formatting) | 508 | .on::<lsp_types::request::OnTypeFormatting>(handlers::handle_on_type_formatting) |
508 | .on::<lsp_types::request::DocumentSymbolRequest>(handlers::handle_document_symbol) | 509 | .on::<lsp_types::request::DocumentSymbolRequest>(handlers::handle_document_symbol) |
509 | .on::<lsp_types::request::WorkspaceSymbol>(handlers::handle_workspace_symbol) | 510 | .on::<lsp_types::request::WorkspaceSymbol>(handlers::handle_workspace_symbol) |