diff options
author | Lukas Wirth <[email protected]> | 2021-03-10 14:49:01 +0000 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2021-03-10 14:49:01 +0000 |
commit | 3af69b535992203c2582433d968eed22a7e7fe69 (patch) | |
tree | 999bcba7335ea8cce48b78117b07b1c459a6859a /crates/ide | |
parent | a9b1e5cde1cc6e470be60cf2c230b99a62c2d2c3 (diff) |
Avoid double text edits when renaming mod declaration
Diffstat (limited to 'crates/ide')
-rw-r--r-- | crates/ide/src/references/rename.rs | 1 |
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. | ||
97 | pub(crate) fn will_rename_file( | 98 | pub(crate) fn will_rename_file( |
98 | db: &RootDatabase, | 99 | db: &RootDatabase, |
99 | file_id: FileId, | 100 | file_id: FileId, |