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.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lsp.c') diff --git a/lsp.c b/lsp.c index bb1b5e9..7de51c3 100644 --- a/lsp.c +++ b/lsp.c @@ -961,3 +961,7 @@ void lsp_quit(void) { } lsp_write_quit(); } + +bool lsp_response_is_error(const LSPResponse *r) { + return !lsp_string_is_empty(r->error); +} -- cgit v1.2.3