mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
Prime open files on load
This commit is contained in:
parent
94c48980bb
commit
fc970d188e
3 changed files with 25 additions and 0 deletions
|
@ -426,6 +426,11 @@ fn loop_turn(
|
|||
show_message(req::MessageType::Info, msg, &connection.sender);
|
||||
}
|
||||
world_state.check_watcher.update();
|
||||
pool.execute({
|
||||
let subs = loop_state.subscriptions.subscriptions();
|
||||
let snap = world_state.snapshot();
|
||||
move || snap.analysis().prime_caches(subs).unwrap_or_else(|_: Canceled| ())
|
||||
});
|
||||
}
|
||||
|
||||
if state_changed {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue