mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
rename Edit to TextEdit and AtomEdit to AtomTextEdit
This commit is contained in:
parent
7344d28768
commit
0527e3b283
11 changed files with 92 additions and 87 deletions
|
@ -1,7 +1,7 @@
|
|||
mod reference_completion;
|
||||
|
||||
use ra_editor::find_node_at_offset;
|
||||
use ra_text_edit::AtomEdit;
|
||||
use ra_text_edit::AtomTextEdit;
|
||||
use ra_syntax::{
|
||||
algo::visit::{visitor_ctx, VisitorCtx},
|
||||
ast,
|
||||
|
@ -34,7 +34,7 @@ pub(crate) fn completions(
|
|||
let original_file = db.source_file(position.file_id);
|
||||
// Insert a fake ident to get a valid parse tree
|
||||
let file = {
|
||||
let edit = AtomEdit::insert(position.offset, "intellijRulezz".to_string());
|
||||
let edit = AtomTextEdit::insert(position.offset, "intellijRulezz".to_string());
|
||||
original_file.reparse(&edit)
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue