diff options
author | pommicket <pommicket@gmail.com> | 2022-12-18 23:02:53 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-18 23:02:53 -0500 |
commit | 70d19dbf9fc9bcbbcd0208b4b6e42017fcc5e826 (patch) | |
tree | 23a8a00ccfc2881399def21d97b446ef2286c68e /main.c | |
parent | 54a558c41366579ae35ca8cbfae097481bb36b9b (diff) |
a bunch of brekaing changes
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,4 +1,4 @@ -/* +/* o @TODO: - rename buffer->filename to buffer->path - rust-analyzer bug reports: @@ -307,7 +307,7 @@ int main(int argc, char **argv) { exit(1); } usleep(1000000);//if we don't do this we get "waiting for cargo metadata or cargo check" - LSPRequest test_req = {.type = LSP_COMPLETION}; + LSPRequest test_req = {.type = LSP_REQUEST_COMPLETION}; test_req.data.completion = (LSPRequestCompletion){ .position = { .path = str_dup("/p/test-lsp/src/main.rs"), @@ -322,7 +322,7 @@ int main(int argc, char **argv) { if (message.type == LSP_RESPONSE) { const LSPResponse *response = &message.u.response; switch (response->type) { - case LSP_COMPLETION: { + case LSP_REQUEST_COMPLETION: { const LSPResponseCompletion *completion = &response->data.completion; arr_foreach_ptr(completion->items, LSPCompletionItem, item) { printf("(%d)%s => ", @@ -338,12 +338,12 @@ int main(int argc, char **argv) { } else if (message.type == LSP_REQUEST) { const LSPRequest *request = &message.u.request; switch (request->type) { - case LSP_SHOW_MESSAGE: { + case LSP_REQUEST_SHOW_MESSAGE: { const LSPRequestMessage *m = &request->data.message; // @TODO actually show printf("Show (%d): %s\n", m->type, m->message); } break; - case LSP_LOG_MESSAGE: { + case LSP_REQUEST_LOG_MESSAGE: { const LSPRequestMessage *m = &request->data.message; // @TODO actually log printf("Log (%d): %s\n", m->type, m->message); |