mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
Rename source_edit to source_file_edit to match file_system_edit
This commit is contained in:
parent
b92fcbc956
commit
4d26bae46d
5 changed files with 11 additions and 11 deletions
|
@ -17,7 +17,7 @@ pub(crate) fn assists(db: &RootDatabase, frange: FileRange) -> Vec<Assist> {
|
|||
let file_id = frange.file_id;
|
||||
let file_edit = SourceFileEdit { file_id, edit: action.edit };
|
||||
let id = label.id;
|
||||
let change = SourceChange::source_edit(label.label, file_edit).with_cursor_opt(
|
||||
let change = SourceChange::source_file_edit(label.label, file_edit).with_cursor_opt(
|
||||
action.cursor_position.map(|offset| FilePosition { offset, file_id }),
|
||||
);
|
||||
Assist { id, change }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue