diff options
author | Jeremy Kolb <[email protected]> | 2020-12-22 19:19:51 +0000 |
---|---|---|
committer | Jeremy Kolb <[email protected]> | 2020-12-23 12:47:31 +0000 |
commit | 4f989cfa08e9a9f4abf8dc6136c9802bc7ad3a4c (patch) | |
tree | 038a06aadfdc5063d3e5b0f47577bab71386d5d3 /crates/rust-analyzer/src/main_loop.rs | |
parent | 27ccde9ce97c2e7d531efa9e8da3c7285efca73d (diff) |
Implement workspace/willRenameFiles for single-level file moves
Renames modules during file rename if they're in the same directory.
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 ec3d5e060..5d55dc96e 100644 --- a/crates/rust-analyzer/src/main_loop.rs +++ b/crates/rust-analyzer/src/main_loop.rs | |||
@@ -485,6 +485,7 @@ impl GlobalState { | |||
485 | .on::<lsp_types::request::SemanticTokensRangeRequest>( | 485 | .on::<lsp_types::request::SemanticTokensRangeRequest>( |
486 | handlers::handle_semantic_tokens_range, | 486 | handlers::handle_semantic_tokens_range, |
487 | ) | 487 | ) |
488 | .on::<lsp_types::request::WillRenameFiles>(handlers::handle_will_rename_files) | ||
488 | .on::<lsp_ext::Ssr>(handlers::handle_ssr) | 489 | .on::<lsp_ext::Ssr>(handlers::handle_ssr) |
489 | .finish(); | 490 | .finish(); |
490 | Ok(()) | 491 | Ok(()) |