Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit c9d33cd

Browse files
committed
Don't run flycheck on startup unless checkOnSave is enabled
1 parent 1e4a182 commit c9d33cd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

crates/rust-analyzer/src/main_loop.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,10 @@ impl GlobalState {
287287
|| self.fetch_build_data_queue.op_requested());
288288

289289
if became_quiescent {
290-
// Project has loaded properly, kick off initial flycheck
291-
self.flycheck.iter().for_each(FlycheckHandle::restart);
290+
if self.config.check_on_save() {
291+
// Project has loaded properly, kick off initial flycheck
292+
self.flycheck.iter().for_each(FlycheckHandle::restart);
293+
}
292294
if self.config.prefill_caches() {
293295
self.prime_caches_queue.request_op("became quiescent".to_string());
294296
}

0 commit comments

Comments
 (0)