Skip to content

Commit

Permalink
Don't run flycheck on startup unless checkOnSave is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Veykril committed Jan 18, 2023
1 parent 1e4a182 commit c9d33cd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/rust-analyzer/src/main_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,10 @@ impl GlobalState {
|| self.fetch_build_data_queue.op_requested());

if became_quiescent {
// Project has loaded properly, kick off initial flycheck
self.flycheck.iter().for_each(FlycheckHandle::restart);
if self.config.check_on_save() {
// Project has loaded properly, kick off initial flycheck
self.flycheck.iter().for_each(FlycheckHandle::restart);
}
if self.config.prefill_caches() {
self.prime_caches_queue.request_op("became quiescent".to_string());
}
Expand Down

0 comments on commit c9d33cd

Please sign in to comment.