We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3910c6 commit ca9d3fbCopy full SHA for ca9d3fb
crates/rust-analyzer/src/main_loop.rs
@@ -452,7 +452,11 @@ impl GlobalState {
452
// Project has loaded properly, kick off initial flycheck
453
self.flycheck.iter().for_each(|flycheck| flycheck.restart_workspace(None));
454
}
455
- if self.config.prefill_caches() {
+ // delay initial cache priming until proc macros are loaded, or we will load up a bunch of garbage into salsa
456
+ let proc_macros_loaded = self.config.prefill_caches()
457
+ && !self.config.expand_proc_macros()
458
+ || self.fetch_proc_macros_queue.last_op_result().copied().unwrap_or(false);
459
+ if proc_macros_loaded {
460
self.prime_caches_queue.request_op("became quiescent".to_owned(), ());
461
462
0 commit comments