We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1c72e54 + c159ac2 commit facaf8bCopy full SHA for facaf8b
crates/rust-analyzer/src/reload.rs
@@ -754,21 +754,21 @@ impl GlobalState {
754
self.analysis_host.apply_change(change);
755
756
self.finish_loading_crate_graph();
757
- return;
+ } else {
758
+ change.set_crate_graph(crate_graph);
759
+ self.fetch_proc_macros_queue.request_op(cause, (change, proc_macro_paths));
760
}
- change.set_crate_graph(crate_graph);
- self.fetch_proc_macros_queue.request_op(cause, (change, proc_macro_paths));
761
- }
762
763
- pub(crate) fn finish_loading_crate_graph(&mut self) {
764
self.report_progress(
765
"Building CrateGraph",
766
crate::lsp::utils::Progress::End,
767
None,
768
769
770
);
+ }
771
+ pub(crate) fn finish_loading_crate_graph(&mut self) {
772
self.process_changes();
773
self.reload_flycheck();
774
0 commit comments