diff options
author | pommicket <pommicket@gmail.com> | 2022-12-22 16:27:06 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-22 16:27:06 -0500 |
commit | 6bb4da5fab94d2ed3d093b996674fd1cc28eda2f (patch) | |
tree | d986574a0100cd4d35782585a8309815f8bf1b49 /main.c | |
parent | f2296487cf9b2e86261eaf1d448b723f3ef70202 (diff) |
document IDs instead of documents
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,6 +1,7 @@ /* @TODO: - send didClose +- LSP setting - scroll through completions - figure out under which circumstances backspace should close completions - rename buffer->filename to buffer->path @@ -60,7 +61,7 @@ no_warn_end #endif #include "unicode.h" -#include "arr.c" +#include "ds.c" #include "util.c" #if _WIN32 @@ -315,7 +316,7 @@ int main(int argc, char **argv) { LSPRequest test_req = {.type = LSP_REQUEST_COMPLETION}; test_req.data.completion = (LSPRequestCompletion){ .position = { - .document = str_dup("/p/test-lsp/src/main.rs"), + .document = lsp_document_id(&lsp, "/p/test-lsp/src/main.rs"), .pos = { .line = 2, .character = 2, |