Prime open files on load

This commit is contained in:
Aleksey Kladov 2020-03-05 12:42:04 +01:00
parent 94c48980bb
commit fc970d188e
3 changed files with 25 additions and 0 deletions

View file

@ -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 {