From e1fe930845a5e0125aeba310c93fae86cae078fc Mon Sep 17 00:00:00 2001 From: Milo <50248166+Milo123459@users.noreply.github.com> Date: Fri, 14 Jan 2022 22:06:30 +0000 Subject: [PATCH 1/2] fix overly --- crates/rust-analyzer/src/main_loop.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: {:?}", From 3de6b4839f2473febea356d3a94b470b86fac8dd Mon Sep 17 00:00:00 2001 From: Milo <50248166+Milo123459@users.noreply.github.com> Date: Fri, 14 Jan 2022 22:13:45 +0000 Subject: [PATCH 2/2] format --- crates/ide_assists/src/handlers/expand_glob_import.rs | 4 +--- crates/ide_completion/src/completions/qualified_path.rs | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/crates/ide_assists/src/handlers/expand_glob_import.rs b/crates/ide_assists/src/handlers/expand_glob_import.rs index 72c17b674c..4def6543ab 100644 --- a/crates/ide_assists/src/handlers/expand_glob_import.rs +++ b/crates/ide_assists/src/handlers/expand_glob_import.rs @@ -226,9 +226,7 @@ fn find_imported_defs(ctx: &AssistContext, star: SyntaxToken) -> Option {