@@ -348,11 +348,7 @@ impl GlobalState {
348348let memdocs_added_or_removed = self . mem_docs . take_changes ( ) ;
349349
350350if 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;
356352if became_quiescent {
357353if self . config . check_on_save ( ) {
358354// Project has loaded properly, kick off initial flycheck
@@ -363,7 +359,7 @@ impl GlobalState {
363359}
364360}
365361
366- let client_refresh = !was_quiescent || state_changed;
362+ let client_refresh = became_quiescent || state_changed;
367363if client_refresh {
368364// Refresh semantic tokens if the client supports it.
369365if self . config . semantic_tokens_refresh ( ) {
@@ -377,17 +373,17 @@ impl GlobalState {
377373}
378374
379375// 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 ( ) {
381377self . send_request :: < lsp_types:: request:: InlayHintRefreshRequest > ( ( ) , |_, _| ( ) ) ;
382- self . send_hint_refresh_query = false ;
383378}
384379}
385380
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 ( ) {
388384self . update_diagnostics ( ) ;
389385}
390- if things_changed && self . config . test_explorer ( ) {
386+ if project_or_mem_docs_changed && self . config . test_explorer ( ) {
391387self . update_tests ( ) ;
392388}
393389}
@@ -641,7 +637,6 @@ impl GlobalState {
641637}
642638
643639self . switch_workspaces ( "fetched build data" . to_owned ( ) ) ;
644- self . send_hint_refresh_query = true ;
645640
646641( Some ( Progress :: End ) , None )
647642}
@@ -658,7 +653,6 @@ impl GlobalState {
658653ProcMacroProgress :: End ( proc_macro_load_result) => {
659654self . fetch_proc_macros_queue . op_completed ( true ) ;
660655self . set_proc_macros ( proc_macro_load_result) ;
661- self . send_hint_refresh_query = true ;
662656( Some ( Progress :: End ) , None )
663657}
664658} ;
0 commit comments