(
stdin: &mut tokio::process::ChildStdin,
value: Value,
timeout: Duration,
)
| 356 | } |
| 357 | |
| 358 | async fn write_message_with_timeout( |
| 359 | stdin: &mut tokio::process::ChildStdin, |
| 360 | value: Value, |
| 361 | timeout: Duration, |
| 362 | ) -> Result<()> { |
| 363 | tokio::time::timeout(timeout, write_message(stdin, value)) |
| 364 | .await |
| 365 | .map_err(|_| TraceDecayError::Config { |
| 366 | message: format!( |
| 367 | "LSP message write timed out after {} ms", |
| 368 | timeout.as_millis() |
| 369 | ), |
| 370 | })? |
| 371 | } |
| 372 | |
| 373 | fn refresh_timed_out(timeouts: LspRefreshTimeouts) -> TraceDecayError { |
| 374 | TraceDecayError::Config { |
no test coverage detected