summaryrefslogtreecommitdiff
path: root/lsp.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-09-13 23:11:15 -0400
committerpommicket <pommicket@gmail.com>2023-09-14 10:47:51 -0400
commit52015e0c9a4e3bc8dc558929a85461f079dda303 (patch)
treebfdf9bda87934dbd96d4da1e87454d22184545b7 /lsp.h
parente33379bab95031555ed5459ee8a73672f24fd0a0 (diff)
batch write requests, fix tiny memory leak in ide-autocomplete
Diffstat (limited to 'lsp.h')
-rw-r--r--lsp.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lsp.h b/lsp.h
index b1e8496..88a1478 100644
--- a/lsp.h
+++ b/lsp.h
@@ -868,8 +868,11 @@ typedef struct {
void process_message(LSP *lsp, JSON *json);
-void write_request(LSP *lsp, LSPRequest *request);
-void write_message(LSP *lsp, LSPMessage *message);
+/// write request to string builder
+void write_request(LSP *lsp, LSPRequest *request, StrBuilder *builder);
+void write_message(LSP *lsp, LSPMessage *message, StrBuilder *builder);
+/// send request without any kind of batching. don't use this often.
+void lsp_send_request_direct(LSP *lsp, LSPRequest *request);
void lsp_request_free(LSPRequest *r);
void lsp_response_free(LSPResponse *r);