summaryrefslogtreecommitdiff
path: root/lsp.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-23 15:00:20 -0500
committerpommicket <pommicket@gmail.com>2022-12-23 15:00:20 -0500
commit431a785f20127a7f1b6c1a6f1cd2a5031a7236ca (patch)
treea94ca3c12cdb666f56e7a8677225a71129989af4 /lsp.h
parent214dae3a7b58077436ffd173ae9fe8f2a6d9b97b (diff)
only ask for completions if the server actually supports it
Diffstat (limited to 'lsp.h')
-rw-r--r--lsp.h3
1 files changed, 2 insertions, 1 deletions
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);