aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2021-05-02 19:45:00 +0100
committerAleksey Kladov <[email protected]>2021-05-02 19:45:00 +0100
commitcd69307aeeaa6996e782359f503666e5d7b64a25 (patch)
tree044a0acfd1eea1fab1de57b38b020d456264fca4 /crates/ide/src
parent548c18c062a9372b00b0ad0ad87bef26a6d9e82c (diff)
fix: don't duplicate Progerss::Finised for cache priming
Diffstat (limited to 'crates/ide/src')
-rw-r--r--crates/ide/src/prime_caches.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ide/src/prime_caches.rs b/crates/ide/src/prime_caches.rs
index 03597f507..d912a01b8 100644
--- a/crates/ide/src/prime_caches.rs
+++ b/crates/ide/src/prime_caches.rs
@@ -27,6 +27,7 @@ pub(crate) fn prime_caches(db: &RootDatabase, cb: &(dyn Fn(PrimeCachesProgress)
27 let topo = &graph.crates_in_topological_order(); 27 let topo = &graph.crates_in_topological_order();
28 28
29 cb(PrimeCachesProgress::Started); 29 cb(PrimeCachesProgress::Started);
30 // Take care to emit the finish signal even when the computation is canceled.
30 let _d = stdx::defer(|| cb(PrimeCachesProgress::Finished)); 31 let _d = stdx::defer(|| cb(PrimeCachesProgress::Finished));
31 32
32 // FIXME: This would be easy to parallelize, since it's in the ideal ordering for that. 33 // FIXME: This would be easy to parallelize, since it's in the ideal ordering for that.