mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
fix: Differentiate between vfs config load and file changed events
This commit is contained in:
parent
f5f7ddae23
commit
e1c67485bf
8 changed files with 26 additions and 16 deletions
|
@ -322,7 +322,7 @@ fn load_crate_graph(
|
|||
break;
|
||||
}
|
||||
}
|
||||
vfs::loader::Message::Loaded { files } => {
|
||||
vfs::loader::Message::Loaded { files } | vfs::loader::Message::Changed { files } => {
|
||||
for (path, contents) in files {
|
||||
vfs.set_file_contents(path.into(), contents);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue