Implement workspace/willRenameFiles for single-level file moves

Renames modules during file rename if they're in the same directory.
This commit is contained in:
Jeremy Kolb
2020-12-22 14:19:51 -05:00
parent 27ccde9ce9
commit 4f989cfa08
5 changed files with 92 additions and 6 deletions

View File

@@ -485,6 +485,7 @@ impl GlobalState {
.on::<lsp_types::request::SemanticTokensRangeRequest>(
handlers::handle_semantic_tokens_range,
)
.on::<lsp_types::request::WillRenameFiles>(handlers::handle_will_rename_files)
.on::<lsp_ext::Ssr>(handlers::handle_ssr)
.finish();
Ok(())