summaryrefslogtreecommitdiff
path: root/lsp-parse.c
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-parse.c
parente33379bab95031555ed5459ee8a73672f24fd0a0 (diff)
batch write requests, fix tiny memory leak in ide-autocomplete
Diffstat (limited to 'lsp-parse.c')
-rw-r--r--lsp-parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lsp-parse.c b/lsp-parse.c
index ff243fb..16e9804 100644
--- a/lsp-parse.c
+++ b/lsp-parse.c
@@ -1141,7 +1141,7 @@ void process_message(LSP *lsp, JSON *json) {
.type = LSP_REQUEST_INITIALIZED,
.data = {{0}},
};
- write_request(lsp, &initialized);
+ lsp_send_request_direct(lsp, &initialized);
// we can now send requests which have nothing to do with initialization
lsp->initialized = true;
if (lsp->configuration_to_send) {