fix: Clear proc-macro changed flag when reloading workspace

This commit is contained in:
Lukas Wirth 2022-06-15 14:29:13 +02:00
parent 002447d6cb
commit 664a751f2b
3 changed files with 4 additions and 3 deletions

View file

@ -45,6 +45,7 @@ use crate::{
pub(crate) fn handle_workspace_reload(state: &mut GlobalState, _: ()) -> Result<()> {
state.proc_macro_client = None;
state.proc_macro_changed = false;
state.fetch_workspaces_queue.request_op("reload workspace request".to_string());
state.fetch_build_data_queue.request_op("reload workspace request".to_string());
Ok(())

View file

@ -162,7 +162,7 @@ impl GlobalState {
}
pub(crate) fn fetch_build_data(&mut self, cause: Cause) {
tracing::debug!(%cause, "will fetch build data");
tracing::info!(%cause, "will fetch build data");
let workspaces = Arc::clone(&self.workspaces);
let config = self.config.cargo();
self.task_pool.handle.spawn_with_sender(move |sender| {