mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Remove vertical ellipses in references.cs
This commit is contained in:
parent
1b74eed8ca
commit
44b2642900
1 changed files with 33 additions and 34 deletions
|
@ -389,40 +389,39 @@ mod tests {
|
||||||
let new_name = "foo2";
|
let new_name = "foo2";
|
||||||
let source_change = analysis.rename(position, new_name).unwrap();
|
let source_change = analysis.rename(position, new_name).unwrap();
|
||||||
assert_debug_snapshot_matches!(&source_change,
|
assert_debug_snapshot_matches!(&source_change,
|
||||||
@r###"
|
@r###"Some(
|
||||||
⋮Some(
|
SourceChange {
|
||||||
⋮ SourceChange {
|
label: "rename",
|
||||||
⋮ label: "rename",
|
source_file_edits: [
|
||||||
⋮ source_file_edits: [
|
SourceFileEdit {
|
||||||
⋮ SourceFileEdit {
|
file_id: FileId(
|
||||||
⋮ file_id: FileId(
|
1,
|
||||||
⋮ 1,
|
),
|
||||||
⋮ ),
|
edit: TextEdit {
|
||||||
⋮ edit: TextEdit {
|
atoms: [
|
||||||
⋮ atoms: [
|
AtomTextEdit {
|
||||||
⋮ AtomTextEdit {
|
delete: [4; 7),
|
||||||
⋮ delete: [4; 7),
|
insert: "foo2",
|
||||||
⋮ insert: "foo2",
|
},
|
||||||
⋮ },
|
],
|
||||||
⋮ ],
|
},
|
||||||
⋮ },
|
},
|
||||||
⋮ },
|
],
|
||||||
⋮ ],
|
file_system_edits: [
|
||||||
⋮ file_system_edits: [
|
MoveFile {
|
||||||
⋮ MoveFile {
|
src: FileId(
|
||||||
⋮ src: FileId(
|
2,
|
||||||
⋮ 2,
|
),
|
||||||
⋮ ),
|
dst_source_root: SourceRootId(
|
||||||
⋮ dst_source_root: SourceRootId(
|
0,
|
||||||
⋮ 0,
|
),
|
||||||
⋮ ),
|
dst_path: "foo2/mod.rs",
|
||||||
⋮ dst_path: "foo2/mod.rs",
|
},
|
||||||
⋮ },
|
],
|
||||||
⋮ ],
|
cursor_position: None,
|
||||||
⋮ cursor_position: None,
|
},
|
||||||
⋮ },
|
)"###
|
||||||
⋮)
|
);
|
||||||
"###);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn test_rename(text: &str, new_name: &str, expected: &str) {
|
fn test_rename(text: &str, new_name: &str, expected: &str) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue