Skip to content

Commit cb3eba1

Browse files
committed
Clear all check diagnostics when the workspace changes
1 parent bc5a260 commit cb3eba1

File tree

1 file changed

+1
-0
lines changed
  • src/tools/rust-analyzer/crates/rust-analyzer/src

1 file changed

+1
-0
lines changed

src/tools/rust-analyzer/crates/rust-analyzer/src/main_loop.rs

+1
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,7 @@ impl GlobalState {
715715
error!("FetchWorkspaceError: {e}");
716716
}
717717
self.wants_to_switch = Some("fetched workspace".to_owned());
718+
self.diagnostics.clear_check_all();
718719
(Progress::End, None)
719720
}
720721
};

0 commit comments

Comments
 (0)