Skip to content

Commit e6e7280

Browse files
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]>
2 parents 7a52f83 + 3de6b48 commit e6e7280

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/rust-analyzer/src/main_loop.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ impl GlobalState {
524524
}
525525

526526
let loop_duration = loop_start.elapsed();
527-
if loop_duration > Duration::from_millis(100) {
527+
if loop_duration > Duration::from_millis(100) && was_quiescent {
528528
tracing::warn!("overly long loop turn: {:?}", loop_duration);
529529
self.poke_rust_analyzer_developer(format!(
530530
"overly long loop turn: {:?}",

0 commit comments

Comments
 (0)