Unnamed repository; edit this file 'description' to name the repository.
Restore a deleted comment that was quite informative
Was deleted when this code was moved in PR 18043.
Cormac Relf 4 months ago
parent fa181ab · commit f8bc65a
-rw-r--r--crates/rust-analyzer/src/main_loop.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/rust-analyzer/src/main_loop.rs b/crates/rust-analyzer/src/main_loop.rs
index 62a3b3a17b..ba817609d3 100644
--- a/crates/rust-analyzer/src/main_loop.rs
+++ b/crates/rust-analyzer/src/main_loop.rs
@@ -1180,6 +1180,8 @@ impl GlobalState {
} => self.diagnostics.clear_check_older_than_for_package(id, package_id, generation),
FlycheckMessage::Progress { id, progress } => {
let format_with_id = |user_facing_command: String| {
+ // When we're running multiple flychecks, we have to include a disambiguator in
+ // the title, or the editor complains. Note that this is a user-facing string.
if self.flycheck.len() == 1 {
user_facing_command
} else {