mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Emit more concise text edits in ide_db::rename
This commit is contained in:
parent
995c8f50a2
commit
daf3094958
2 changed files with 46 additions and 44 deletions
|
@ -274,6 +274,7 @@ mod tests {
|
|||
|
||||
use super::{RangeInfo, RenameError};
|
||||
|
||||
#[track_caller]
|
||||
fn check(new_name: &str, ra_fixture_before: &str, ra_fixture_after: &str) {
|
||||
let ra_fixture_after = &trim_indent(ra_fixture_after);
|
||||
let (analysis, position) = fixture::position(ra_fixture_before);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue