From bbe75ba8c590747e7df7664128afdf96aeb539e2 Mon Sep 17 00:00:00 2001 From: pommicket Date: Sat, 7 Dec 2024 20:38:11 -0500 Subject: Better handling of LSP errors --- lsp.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lsp.h') diff --git a/lsp.h b/lsp.h index 88a1478..37370bc 100644 --- a/lsp.h +++ b/lsp.h @@ -667,6 +667,8 @@ void lsp_cancel_request(LSP *lsp, LSPRequestID id); // don't free the contents of this response! let me handle it! void lsp_send_response(LSP *lsp, LSPResponse *response); const char *lsp_response_string(const LSPResponse *response, LSPString string); +/// returns `true` if this response is an error +bool lsp_response_is_error(const LSPResponse *r); const char *lsp_request_string(const LSPRequest *request, LSPString string); /// low-level API for allocating message strings. /// -- cgit v1.2.3