diff options
Diffstat (limited to 'lsp-write-request.c')
-rw-r--r-- | lsp-write-request.c | 2 |
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); |