aboutsummaryrefslogtreecommitdiff
path: root/crates/ide
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-03-10 15:07:46 +0000
committerGitHub <[email protected]>2021-03-10 15:07:46 +0000
commit83280ea5746451f4580e6c32ba8a82be972cb786 (patch)
treead5569e2b6ccc2bf00ef0fb3aabedb6282505895 /crates/ide
parent9dc13408f954719ae0b06d778ce6338bfcd5a63d (diff)
parent3af69b535992203c2582433d968eed22a7e7fe69 (diff)
Merge #7958
7958: Avoid double text edits when renaming mod declaration r=matklad a=Veykril Closes https://github.com/rust-analyzer/rust-analyzer/issues/7916 See https://github.com/microsoft/vscode-languageserver-node/issues/752 for context Co-authored-by: Lukas Wirth <[email protected]>
Diffstat (limited to 'crates/ide')
-rw-r--r--crates/ide/src/references/rename.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ide/src/references/rename.rs b/crates/ide/src/references/rename.rs
index 05c73de88..bb68bcc78 100644
--- a/crates/ide/src/references/rename.rs
+++ b/crates/ide/src/references/rename.rs
@@ -94,6 +94,7 @@ pub(crate) fn rename_with_semantics(
94 } 94 }
95} 95}
96 96
97/// Called by the client when it is about to rename a file.
97pub(crate) fn will_rename_file( 98pub(crate) fn will_rename_file(
98 db: &RootDatabase, 99 db: &RootDatabase,
99 file_id: FileId, 100 file_id: FileId,