mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
rename file_syntax -> source_file
This commit is contained in:
parent
65c064b2a9
commit
ec45dfea1e
6 changed files with 18 additions and 18 deletions
|
@ -29,7 +29,7 @@ pub(crate) fn completions(
|
|||
db: &db::RootDatabase,
|
||||
position: FilePosition,
|
||||
) -> Cancelable<Option<Vec<CompletionItem>>> {
|
||||
let original_file = db.file_syntax(position.file_id);
|
||||
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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue