mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-15 14:43:58 +00:00
parent
1aded34226
commit
730664f646
1 changed files with 6 additions and 3 deletions
|
@ -117,9 +117,12 @@ pub fn load(
|
||||||
done = true;
|
done = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
VfsChange::AddFile { .. }
|
VfsChange::AddFile { root, file, path, text } => {
|
||||||
| VfsChange::RemoveFile { .. }
|
let source_root_id = vfs_root_to_id(root);
|
||||||
| VfsChange::ChangeFile { .. } => {
|
let file_id = vfs_file_to_id(file);
|
||||||
|
analysis_change.add_file(source_root_id, file_id, path, text);
|
||||||
|
}
|
||||||
|
VfsChange::RemoveFile { .. } | VfsChange::ChangeFile { .. } => {
|
||||||
// We just need the first scan, so just ignore these
|
// We just need the first scan, so just ignore these
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue