diff options
author | pommicket <pommicket@gmail.com> | 2023-09-13 23:11:15 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-09-14 10:47:51 -0400 |
commit | 52015e0c9a4e3bc8dc558929a85461f079dda303 (patch) | |
tree | bfdf9bda87934dbd96d4da1e87454d22184545b7 /lsp.h | |
parent | e33379bab95031555ed5459ee8a73672f24fd0a0 (diff) |
batch write requests, fix tiny memory leak in ide-autocomplete
Diffstat (limited to 'lsp.h')
-rw-r--r-- | lsp.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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); |