diff options
author | pommicket <pommicket@gmail.com> | 2024-12-07 20:38:11 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2024-12-07 20:38:11 -0500 |
commit | bbe75ba8c590747e7df7664128afdf96aeb539e2 (patch) | |
tree | 40342f0fda4dbfcc02030a25dfe78d973170ab9a /lsp.h | |
parent | b74905fcb282603f8afc45cd3f08fa8c28c83d41 (diff) |
Better handling of LSP errors
Diffstat (limited to 'lsp.h')
-rw-r--r-- | lsp.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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. /// |