diff options
author | Michael Davis | 2023-02-16 01:16:25 +0000 |
---|---|---|
committer | GitHub | 2023-02-16 01:16:25 +0000 |
commit | 0f64f31d8b89c24910208bc50baa8ce03c00fbf3 (patch) | |
tree | 8cbea19d77acc3824c1dc0c1b110eec60ae82991 /helix-lsp/src/lib.rs | |
parent | d8526a752c52e73f041f76869c0e040959632927 (diff) |
LSP: Add request ID to request timeout message (#6010)
This improves error logging for requests - without the ID it's hard to
know which request is the one that timed out.
Diffstat (limited to 'helix-lsp/src/lib.rs')
-rw-r--r-- | helix-lsp/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-lsp/src/lib.rs b/helix-lsp/src/lib.rs index 72456b37..341d4a54 100644 --- a/helix-lsp/src/lib.rs +++ b/helix-lsp/src/lib.rs @@ -34,8 +34,8 @@ pub enum Error { Parse(#[from] serde_json::Error), #[error("IO Error: {0}")] IO(#[from] std::io::Error), - #[error("request timed out")] - Timeout, + #[error("request {0} timed out")] + Timeout(jsonrpc::Id), #[error("server closed the stream")] StreamClosed, #[error("Unhandled")] |