mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-02 02:17:44 +03:00
minor: Tweak some verbose LSP logs
The info log within `process_request_response` duplicated the body of the JSON message printed earlier by the transport which was confusing. The error log in the completion handler was easy to hit during normal use and is not actually an error - dropping is the graceful way to handle changes occurring while completion requests are in flight.
This commit is contained in:
parent
1d453785e5
commit
ab56f9e26b
2 changed files with 2 additions and 5 deletions
|
@ -223,10 +223,7 @@ impl Transport {
|
|||
language_server_name: &str,
|
||||
) -> Result<()> {
|
||||
let (id, result) = match output {
|
||||
jsonrpc::Output::Success(jsonrpc::Success { id, result, .. }) => {
|
||||
info!("{language_server_name} <- {}", result);
|
||||
(id, Ok(result))
|
||||
}
|
||||
jsonrpc::Output::Success(jsonrpc::Success { id, result, .. }) => (id, Ok(result)),
|
||||
jsonrpc::Output::Failure(jsonrpc::Failure { id, error, .. }) => {
|
||||
error!("{language_server_name} <- {error}");
|
||||
(id, Err(error.into()))
|
||||
|
|
|
@ -57,7 +57,7 @@ async fn replace_completions(
|
|||
return;
|
||||
};
|
||||
if handle.is_canceled() {
|
||||
log::error!("dropping outdated completion response");
|
||||
log::info!("dropping outdated completion response");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue