aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/lib.rs
diff options
context:
space:
mode:
authorveetaha <[email protected]>2020-05-10 16:35:33 +0100
committerVeetaha <[email protected]>2020-06-18 12:50:56 +0100
commit76c1160ffa626fc5f07b309420e6666eb79a3311 (patch)
treefaa1e1bab885988042fb735f89c7bc5c59127a12 /crates/ra_ide/src/lib.rs
parent2f8126fcace3c5e7db01c755b91eb45a9c632cfd (diff)
Migrate flycheck to fully-lsp-compatible progress reports (introduce ra_progress crate)
Diffstat (limited to 'crates/ra_ide/src/lib.rs')
-rw-r--r--crates/ra_ide/src/lib.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/crates/ra_ide/src/lib.rs b/crates/ra_ide/src/lib.rs
index 6704467d9..51dc1f041 100644
--- a/crates/ra_ide/src/lib.rs
+++ b/crates/ra_ide/src/lib.rs
@@ -241,11 +241,8 @@ 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<P>(&self, files: Vec<FileId>, report_progress: P) -> Cancelable<()> 244 pub fn prime_caches(&self, files: Vec<FileId>) -> Cancelable<()> {
245 where 245 self.with_db(|db| prime_caches::prime_caches(db, files))
246 P: FnMut(usize) + std::panic::UnwindSafe,
247 {
248 self.with_db(|db| prime_caches::prime_caches(db, files, report_progress))
249 } 246 }
250 247
251 /// Gets the text of the source file. 248 /// Gets the text of the source file.