mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Hash file contents to verify whether file actually changed
This commit is contained in:
parent
793396c624
commit
1ca97ba896
4 changed files with 75 additions and 94 deletions
|
@ -361,8 +361,8 @@ fn load_crate_graph(
|
|||
}
|
||||
}
|
||||
let changes = vfs.take_changes();
|
||||
for file in changes {
|
||||
if let vfs::Change::Create(v) | vfs::Change::Modify(v) = file.change {
|
||||
for (_, file) in changes {
|
||||
if let vfs::Change::Create(v, _) | vfs::Change::Modify(v, _) = file.change {
|
||||
if let Ok(text) = String::from_utf8(v) {
|
||||
analysis_change.change_file(file.file_id, Some(text))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue