summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-29 22:45:37 -0500
committerpommicket <pommicket@gmail.com>2022-12-29 22:45:37 -0500
commitadbfd5f248d390ae73eb9da636a457ce770c9ac0 (patch)
tree5b989332e857cb2dc9078595d8a46f654a82928a /main.c
parent43eea17544e4bed4384c76d3d95be2c0688b9e27 (diff)
error LSPResponse member
Diffstat (limited to 'main.c')
-rw-r--r--main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/main.c b/main.c
index 766a426..2162577 100644
--- a/main.c
+++ b/main.c
@@ -1,6 +1,5 @@
/*
@TODO:
-- LSPResponse is_error member (and make sure ide-*.c handles it)
- some way of showing that we're currently loading the definition location (different cursor color?)
- more LSP stuff:
- go to definition using LSP
@@ -892,6 +891,13 @@ int main(int argc, char **argv) {
} break;
case LSP_RESPONSE: {
LSPResponse *r = &message.u.response;
+ if (r->error) {
+ // not displaying this right now
+ // idk it might be spammy
+ //ted_seterr(ted, "%s", r->error);
+ }
+ // it's important that we send error responses here too.
+ // we don't want to be waiting around for a response that's never coming.
autocomplete_process_lsp_response(ted, r);
signature_help_process_lsp_response(ted, r);
hover_process_lsp_response(ted, r);