mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-14 17:07:26 +00:00
Auto merge of #12108 - Veykril:simplify, r=Veykril
minor: Record snippet config errors
This commit is contained in:
commit
d382e24a11
3 changed files with 8 additions and 3 deletions
|
@ -584,7 +584,12 @@ impl Config {
|
|||
scope,
|
||||
) {
|
||||
Some(snippet) => self.snippets.push(snippet),
|
||||
None => tracing::info!("Invalid snippet {}", name),
|
||||
None => errors.push((
|
||||
format!("snippet {name} is invalid"),
|
||||
<serde_json::Error as serde::de::Error>::custom(
|
||||
"snippet path is invalid or triggers are missing",
|
||||
),
|
||||
)),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -290,7 +290,7 @@ impl GlobalState {
|
|||
}
|
||||
|
||||
let duration = start.elapsed();
|
||||
tracing::info!("handled {} - ({}) in {:0.2?}", method, response.id, duration);
|
||||
tracing::debug!("handled {} - ({}) in {:0.2?}", method, response.id, duration);
|
||||
self.send(response.into());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -314,7 +314,7 @@ impl GlobalState {
|
|||
self.prime_caches_queue.op_completed(());
|
||||
if cancelled {
|
||||
self.prime_caches_queue
|
||||
.request_op("restart after cancelation".to_string());
|
||||
.request_op("restart after cancellation".to_string());
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue