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
|
@ -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<_>>(),
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue