From 431a785f20127a7f1b6c1a6f1cd2a5031a7236ca Mon Sep 17 00:00:00 2001 From: pommicket Date: Fri, 23 Dec 2022 15:00:20 -0500 Subject: only ask for completions if the server actually supports it --- lsp.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lsp.h') diff --git a/lsp.h b/lsp.h index b4a4aa3..16a6491 100644 --- a/lsp.h +++ b/lsp.h @@ -296,7 +296,8 @@ typedef struct LSP { bool lsp_get_error(LSP *lsp, char *error, size_t error_size, bool clear); void lsp_message_free(LSPMessage *message); u32 lsp_document_id(LSP *lsp, const char *path); -void lsp_send_request(LSP *lsp, const LSPRequest *request); +// don't free the contents of this request! let me handle it! +void lsp_send_request(LSP *lsp, LSPRequest *request); const char *lsp_response_string(const LSPResponse *response, LSPString string); bool lsp_create(LSP *lsp, const char *analyzer_command); bool lsp_next_message(LSP *lsp, LSPMessage *message); -- cgit v1.2.3