diff options
author | pommicket <pommicket@gmail.com> | 2022-12-23 15:00:20 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-23 15:00:20 -0500 |
commit | 431a785f20127a7f1b6c1a6f1cd2a5031a7236ca (patch) | |
tree | a94ca3c12cdb666f56e7a8677225a71129989af4 /lsp.h | |
parent | 214dae3a7b58077436ffd173ae9fe8f2a6d9b97b (diff) |
only ask for completions if the server actually supports it
Diffstat (limited to 'lsp.h')
-rw-r--r-- | lsp.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |