aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_cargo_watch
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-01-28 13:40:14 +0000
committerGitHub <[email protected]>2020-01-28 13:40:14 +0000
commite8f990a3d1488760a9f0ece564f4ed691f29dd8f (patch)
treee5097f3d1cc602fabbd6ccc11f96390ec5257399 /crates/ra_cargo_watch
parent912776fd9547d1d28b4cba7e4a41e5391fc12c21 (diff)
parentfdc04ef92066fcf3936664d5f5c80d6f088aac29 (diff)
Merge #2923
2923: Don't do check progress update for fresh crates r=matklad a=kiljacken Skip sending progress updates for crates that aren't getting checked. Co-authored-by: Emil Lauridsen <[email protected]>
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) => {