Unnamed repository; edit this file 'description' to name the repository.
Merge #11287
11287: fix: rust-analyzer spamming overly error message when workspace not being loaded r=lnicola a=Milo123459 Fixes #10120 Co-authored-by: Milo <[email protected]>
bors[bot] 2022-01-16
parent 7a52f83 · parent 3de6b48 · commit e6e7280
-rw-r--r--crates/rust-analyzer/src/main_loop.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/main_loop.rs b/crates/rust-analyzer/src/main_loop.rs
index af987230de..830b77f391 100644
--- a/crates/rust-analyzer/src/main_loop.rs
+++ b/crates/rust-analyzer/src/main_loop.rs
@@ -524,7 +524,7 @@ impl GlobalState {
}
let loop_duration = loop_start.elapsed();
- if loop_duration > Duration::from_millis(100) {
+ if loop_duration > Duration::from_millis(100) && was_quiescent {
tracing::warn!("overly long loop turn: {:?}", loop_duration);
self.poke_rust_analyzer_developer(format!(
"overly long loop turn: {:?}",