diff options
author | pommicket <pommicket@gmail.com> | 2023-09-10 00:11:27 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-09-10 00:11:43 -0400 |
commit | 21cb2ba466ec0876d4e04fcca117650101d9359f (patch) | |
tree | 19afe36254cedea198bba5f2a1af5443a27a30a7 /buffer.c | |
parent | 7185635a553d44b537d6fd1264ceedf421e114ef (diff) |
fix godot issues by adding lsp-delay
Diffstat (limited to 'buffer.c')
-rw-r--r-- | buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -516,7 +516,7 @@ static void buffer_send_lsp_did_open(TextBuffer *buffer, LSP *lsp) { open->document = lsp_document_id(lsp, buffer->path); open->language = buffer_language(buffer); lsp_send_request(lsp, &request); - buffer->lsp_opened_in = lsp->id; + buffer->lsp_opened_in = lsp_get_id(lsp); } LSP *buffer_lsp(TextBuffer *buffer) { @@ -1911,7 +1911,7 @@ static void buffer_send_lsp_did_change(LSP *lsp, TextBuffer *buffer, BufferPos p range.end = buffer_pos_to_lsp_position(buffer, pos_end); const char *document = buffer->path; - if (lsp->capabilities.incremental_sync_support) { + if (lsp_has_incremental_sync_support(lsp)) { LSPRequest request = {.type = LSP_REQUEST_DID_CHANGE}; LSPDocumentChangeEvent change = { .range = range, |