summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-18 23:02:53 -0500
committerpommicket <pommicket@gmail.com>2022-12-18 23:02:53 -0500
commit70d19dbf9fc9bcbbcd0208b4b6e42017fcc5e826 (patch)
tree23a8a00ccfc2881399def21d97b446ef2286c68e /main.c
parent54a558c41366579ae35ca8cbfae097481bb36b9b (diff)
a bunch of brekaing changes
Diffstat (limited to 'main.c')
-rw-r--r--main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.c b/main.c
index 6e7259c..f8e3c98 100644
--- a/main.c
+++ b/main.c
@@ -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);