aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/references
diff options
context:
space:
mode:
authorLukas Wirth <[email protected]>2021-03-10 14:49:01 +0000
committerLukas Wirth <[email protected]>2021-03-10 14:49:01 +0000
commit3af69b535992203c2582433d968eed22a7e7fe69 (patch)
tree999bcba7335ea8cce48b78117b07b1c459a6859a /crates/ide/src/references
parenta9b1e5cde1cc6e470be60cf2c230b99a62c2d2c3 (diff)
Avoid double text edits when renaming mod declaration
Diffstat (limited to 'crates/ide/src/references')
-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,