fix: Differentiate between vfs config load and file changed events

This commit is contained in:
Lukas Wirth 2024-01-09 10:30:16 +01:00
parent f5f7ddae23
commit e1c67485bf
8 changed files with 26 additions and 16 deletions

View file

@ -1398,7 +1398,7 @@ fn sysroot_to_crate_graph(
let public_deps = SysrootPublicDeps {
deps: sysroot
.public_deps()
.map(|(name, idx, prelude)| (name, sysroot_crates[&idx], prelude))
.filter_map(|(name, idx, prelude)| Some((name, *sysroot_crates.get(&idx)?, prelude)))
.collect::<Vec<_>>(),
};