mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
Merge pull request #19384 from Veykril/push-yppplzzpoymr
fix: Fix stale `Building CrateGraph` report
This commit is contained in:
commit
facaf8b870
@ -754,13 +754,11 @@ impl GlobalState {
|
|||||||
self.analysis_host.apply_change(change);
|
self.analysis_host.apply_change(change);
|
||||||
|
|
||||||
self.finish_loading_crate_graph();
|
self.finish_loading_crate_graph();
|
||||||
return;
|
} else {
|
||||||
}
|
|
||||||
change.set_crate_graph(crate_graph);
|
change.set_crate_graph(crate_graph);
|
||||||
self.fetch_proc_macros_queue.request_op(cause, (change, proc_macro_paths));
|
self.fetch_proc_macros_queue.request_op(cause, (change, proc_macro_paths));
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn finish_loading_crate_graph(&mut self) {
|
|
||||||
self.report_progress(
|
self.report_progress(
|
||||||
"Building CrateGraph",
|
"Building CrateGraph",
|
||||||
crate::lsp::utils::Progress::End,
|
crate::lsp::utils::Progress::End,
|
||||||
@ -768,7 +766,9 @@ impl GlobalState {
|
|||||||
None,
|
None,
|
||||||
None,
|
None,
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
pub(crate) fn finish_loading_crate_graph(&mut self) {
|
||||||
self.process_changes();
|
self.process_changes();
|
||||||
self.reload_flycheck();
|
self.reload_flycheck();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user