@@ -348,11 +348,7 @@ impl GlobalState {
348
348
let memdocs_added_or_removed = self . mem_docs . take_changes ( ) ;
349
349
350
350
if self . is_quiescent ( ) {
351
- let became_quiescent = !( was_quiescent
352
- || self . fetch_workspaces_queue . op_requested ( )
353
- || self . fetch_build_data_queue . op_requested ( )
354
- || self . fetch_proc_macros_queue . op_requested ( ) ) ;
355
-
351
+ let became_quiescent = !was_quiescent;
356
352
if became_quiescent {
357
353
if self . config . check_on_save ( ) {
358
354
// Project has loaded properly, kick off initial flycheck
@@ -363,7 +359,7 @@ impl GlobalState {
363
359
}
364
360
}
365
361
366
- let client_refresh = !was_quiescent || state_changed;
362
+ let client_refresh = became_quiescent || state_changed;
367
363
if client_refresh {
368
364
// Refresh semantic tokens if the client supports it.
369
365
if self . config . semantic_tokens_refresh ( ) {
@@ -377,17 +373,17 @@ impl GlobalState {
377
373
}
378
374
379
375
// Refresh inlay hints if the client supports it.
380
- if self . send_hint_refresh_query && self . config . inlay_hints_refresh ( ) {
376
+ if self . config . inlay_hints_refresh ( ) {
381
377
self . send_request :: < lsp_types:: request:: InlayHintRefreshRequest > ( ( ) , |_, _| ( ) ) ;
382
- self . send_hint_refresh_query = false ;
383
378
}
384
379
}
385
380
386
- let things_changed = !was_quiescent || state_changed || memdocs_added_or_removed;
387
- if things_changed && self . config . publish_diagnostics ( ) {
381
+ let project_or_mem_docs_changed =
382
+ became_quiescent || state_changed || memdocs_added_or_removed;
383
+ if project_or_mem_docs_changed && self . config . publish_diagnostics ( ) {
388
384
self . update_diagnostics ( ) ;
389
385
}
390
- if things_changed && self . config . test_explorer ( ) {
386
+ if project_or_mem_docs_changed && self . config . test_explorer ( ) {
391
387
self . update_tests ( ) ;
392
388
}
393
389
}
@@ -641,7 +637,6 @@ impl GlobalState {
641
637
}
642
638
643
639
self . switch_workspaces ( "fetched build data" . to_owned ( ) ) ;
644
- self . send_hint_refresh_query = true ;
645
640
646
641
( Some ( Progress :: End ) , None )
647
642
}
@@ -658,7 +653,6 @@ impl GlobalState {
658
653
ProcMacroProgress :: End ( proc_macro_load_result) => {
659
654
self . fetch_proc_macros_queue . op_completed ( true ) ;
660
655
self . set_proc_macros ( proc_macro_load_result) ;
661
- self . send_hint_refresh_query = true ;
662
656
( Some ( Progress :: End ) , None )
663
657
}
664
658
} ;
0 commit comments