Skip to content

Commit

Permalink
fix: Fix incorrectly replacing references in macro invocation in "Con…
Browse files Browse the repository at this point in the history
…vert to named struct" assist
  • Loading branch information
jinohkang-theori committed Nov 14, 2023
1 parent 416e9c8 commit 0beba7c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ fn edit_field_references(
edit.edit_file(file_id);
for r in refs {
if let Some(name_ref) = r.name.as_name_ref() {
edit.replace(name_ref.syntax().text_range(), name.text());
edit.replace(ctx.sema.original_range(name_ref.syntax()).range, name.text());
}
}
}
Expand Down

0 comments on commit 0beba7c

Please sign in to comment.