diff options
author | Aleksey Kladov <[email protected]> | 2020-03-05 11:42:04 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-03-05 12:40:53 +0000 |
commit | fc970d188e9eeca02bc189bbcc0082a0bbf13a57 (patch) | |
tree | 304421ba00a3172c94f05b470e2d16c9ffbab1f4 /crates/rust-analyzer/src/main_loop.rs | |
parent | 94c48980bbe51777c52b1d6154181c875f944616 (diff) |
Prime open files on load
Diffstat (limited to 'crates/rust-analyzer/src/main_loop.rs')
-rw-r--r-- | crates/rust-analyzer/src/main_loop.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/rust-analyzer/src/main_loop.rs b/crates/rust-analyzer/src/main_loop.rs index fe804aada..580ad1f2c 100644 --- a/crates/rust-analyzer/src/main_loop.rs +++ b/crates/rust-analyzer/src/main_loop.rs | |||
@@ -426,6 +426,11 @@ fn loop_turn( | |||
426 | show_message(req::MessageType::Info, msg, &connection.sender); | 426 | show_message(req::MessageType::Info, msg, &connection.sender); |
427 | } | 427 | } |
428 | world_state.check_watcher.update(); | 428 | world_state.check_watcher.update(); |
429 | pool.execute({ | ||
430 | let subs = loop_state.subscriptions.subscriptions(); | ||
431 | let snap = world_state.snapshot(); | ||
432 | move || snap.analysis().prime_caches(subs).unwrap_or_else(|_: Canceled| ()) | ||
433 | }); | ||
429 | } | 434 | } |
430 | 435 | ||
431 | if state_changed { | 436 | if state_changed { |