aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_cargo_watch
diff options
context:
space:
mode:
authorEmil Lauridsen <[email protected]>2020-01-28 13:33:52 +0000
committerEmil Lauridsen <[email protected]>2020-01-28 13:33:52 +0000
commitfdc04ef92066fcf3936664d5f5c80d6f088aac29 (patch)
treee5097f3d1cc602fabbd6ccc11f96390ec5257399 /crates/ra_cargo_watch
parent912776fd9547d1d28b4cba7e4a41e5391fc12c21 (diff)
Don't do check progress update for fresh crates
Diffstat (limited to 'crates/ra_cargo_watch')
-rw-r--r--crates/ra_cargo_watch/src/lib.rs8
1 files changed, 8 insertions, 0 deletions
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 {
359 } 359 }
360 }; 360 };
361 361
362 // Skip certain kinds of messages to only spend time on what's useful
363 match &message {
364 Message::CompilerArtifact(artifact) if artifact.fresh => continue,
365 Message::BuildScriptExecuted(_) => continue,
366 Message::Unknown => continue,
367 _ => {}
368 }
369
362 match message_send.send(CheckEvent::Msg(message)) { 370 match message_send.send(CheckEvent::Msg(message)) {
363 Ok(()) => {} 371 Ok(()) => {}
364 Err(_err) => { 372 Err(_err) => {