summaryrefslogtreecommitdiff
path: root/buffer.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-22 16:27:06 -0500
committerpommicket <pommicket@gmail.com>2022-12-22 16:27:06 -0500
commit6bb4da5fab94d2ed3d093b996674fd1cc28eda2f (patch)
treed986574a0100cd4d35782585a8309815f8bf1b49 /buffer.c
parentf2296487cf9b2e86261eaf1d448b723f3ef70202 (diff)
document IDs instead of documents
Diffstat (limited to 'buffer.c')
-rw-r--r--buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/buffer.c b/buffer.c
index 008de6b..183341f 100644
--- a/buffer.c
+++ b/buffer.c
@@ -2186,7 +2186,7 @@ Status buffer_load_file(TextBuffer *buffer, char const *filename) {
LSPRequest request = {.type = LSP_REQUEST_DID_OPEN};
LSPRequestDidOpen *open = &request.data.open;
open->file_contents = (char *)file_contents;
- open->document = str_dup(filename);
+ open->document = lsp_document_id(lsp, filename);
open->language = buffer_language(buffer);
lsp_send_request(lsp, &request);
file_contents = NULL; // don't free