mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Don't run flycheck on startup unless checkOnSave is enabled
This commit is contained in:
parent
1e4a182954
commit
c9d33cddc9
1 changed files with 4 additions and 2 deletions
|
@ -287,8 +287,10 @@ impl GlobalState {
|
||||||
|| self.fetch_build_data_queue.op_requested());
|
|| self.fetch_build_data_queue.op_requested());
|
||||||
|
|
||||||
if became_quiescent {
|
if became_quiescent {
|
||||||
// Project has loaded properly, kick off initial flycheck
|
if self.config.check_on_save() {
|
||||||
self.flycheck.iter().for_each(FlycheckHandle::restart);
|
// Project has loaded properly, kick off initial flycheck
|
||||||
|
self.flycheck.iter().for_each(FlycheckHandle::restart);
|
||||||
|
}
|
||||||
if self.config.prefill_caches() {
|
if self.config.prefill_caches() {
|
||||||
self.prime_caches_queue.request_op("became quiescent".to_string());
|
self.prime_caches_queue.request_op("became quiescent".to_string());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue