From fdc04ef92066fcf3936664d5f5c80d6f088aac29 Mon Sep 17 00:00:00 2001 From: Emil Lauridsen Date: Tue, 28 Jan 2020 14:33:52 +0100 Subject: Don't do check progress update for fresh crates --- crates/ra_cargo_watch/src/lib.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/crates/ra_cargo_watch/src/lib.rs b/crates/ra_cargo_watch/src/lib.rs index e7b700c10..934379dcf 100644 --- a/crates/ra_cargo_watch/src/lib.rs +++ b/crates/ra_cargo_watch/src/lib.rs @@ -359,6 +359,14 @@ impl WatchThread { } }; + // Skip certain kinds of messages to only spend time on what's useful + match &message { + Message::CompilerArtifact(artifact) if artifact.fresh => continue, + Message::BuildScriptExecuted(_) => continue, + Message::Unknown => continue, + _ => {} + } + match message_send.send(CheckEvent::Msg(message)) { Ok(()) => {} Err(_err) => { -- cgit v1.2.3