diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_cargo_watch/src/lib.rs | 8 |
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 1a35151ee..9af9c347d 100644 --- a/crates/ra_cargo_watch/src/lib.rs +++ b/crates/ra_cargo_watch/src/lib.rs | |||
@@ -361,6 +361,14 @@ impl WatchThread { | |||
361 | } | 361 | } |
362 | }; | 362 | }; |
363 | 363 | ||
364 | // Skip certain kinds of messages to only spend time on what's useful | ||
365 | match &message { | ||
366 | Message::CompilerArtifact(artifact) if artifact.fresh => continue, | ||
367 | Message::BuildScriptExecuted(_) => continue, | ||
368 | Message::Unknown => continue, | ||
369 | _ => {} | ||
370 | } | ||
371 | |||
364 | match message_send.send(CheckEvent::Msg(message)) { | 372 | match message_send.send(CheckEvent::Msg(message)) { |
365 | Ok(()) => {} | 373 | Ok(()) => {} |
366 | Err(_err) => { | 374 | Err(_err) => { |