aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide/src/lib.rs')
-rw-r--r--crates/ra_ide/src/lib.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/crates/ra_ide/src/lib.rs b/crates/ra_ide/src/lib.rs
index 51dc1f041..6704467d9 100644
--- a/crates/ra_ide/src/lib.rs
+++ b/crates/ra_ide/src/lib.rs
@@ -241,8 +241,11 @@ impl Analysis {
241 self.with_db(|db| status::status(&*db)) 241 self.with_db(|db| status::status(&*db))
242 } 242 }
243 243
244 pub fn prime_caches(&self, files: Vec<FileId>) -> Cancelable<()> { 244 pub fn prime_caches<P>(&self, files: Vec<FileId>, report_progress: P) -> Cancelable<()>
245 self.with_db(|db| prime_caches::prime_caches(db, files)) 245 where
246 P: FnMut(usize) + std::panic::UnwindSafe,
247 {
248 self.with_db(|db| prime_caches::prime_caches(db, files, report_progress))
246 } 249 }
247 250
248 /// Gets the text of the source file. 251 /// Gets the text of the source file.