summaryrefslogtreecommitdiff
path: root/lsp-write-request.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-20 12:25:18 -0500
committerpommicket <pommicket@gmail.com>2022-12-20 12:25:18 -0500
commitcaf81c5a2c8b9432792c652edd0dcf1f64f7a4f1 (patch)
treedc1d327aff19b59b7fc636cce42d588e94c168ef /lsp-write-request.c
parent8deb7afed44d7be52cb450c3177ecc8e63fd46eb (diff)
start didChange
Diffstat (limited to 'lsp-write-request.c')
-rw-r--r--lsp-write-request.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lsp-write-request.c b/lsp-write-request.c
index 121392d..b7ce148 100644
--- a/lsp-write-request.c
+++ b/lsp-write-request.c
@@ -229,7 +229,7 @@ static void write_request(LSP *lsp, LSPRequest *request) {
const LSPRequestDidOpen *open = &request->data.open;
write_key_obj_start(o, "params");
write_key_obj_start(o, "textDocument");
- write_key_file_uri(o, "uri", open->path);
+ write_key_file_uri(o, "uri", open->document);
write_key_string(o, "languageId", lsp_language_id(open->language));
write_key_number(o, "version", 1);
write_key_string(o, "text", open->file_contents);