mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-16 09:48:10 +00:00
Don't do check progress update for fresh crates
This commit is contained in:
parent
912776fd95
commit
fdc04ef920
1 changed files with 8 additions and 0 deletions
|
@ -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)) {
|
match message_send.send(CheckEvent::Msg(message)) {
|
||||||
Ok(()) => {}
|
Ok(()) => {}
|
||||||
Err(_err) => {
|
Err(_err) => {
|
||||||
|
|
Loading…
Reference in a new issue