Skip to content

Commit e8f990a

Browse files
bors[bot]kiljacken
andauthored
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]>
2 parents 912776f + fdc04ef commit e8f990a

File tree

1 file changed

+8
-0
lines changed
  • crates/ra_cargo_watch/src

1 file changed

+8
-0
lines changed

crates/ra_cargo_watch/src/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,14 @@ impl WatchThread {
359359
}
360360
};
361361

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+
362370
match message_send.send(CheckEvent::Msg(message)) {
363371
Ok(()) => {}
364372
Err(_err) => {

0 commit comments

Comments
 (0)