diff options
author | pommicket <pommicket@gmail.com> | 2022-12-29 22:45:37 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-29 22:45:37 -0500 |
commit | adbfd5f248d390ae73eb9da636a457ce770c9ac0 (patch) | |
tree | 5b989332e857cb2dc9078595d8a46f654a82928a /main.c | |
parent | 43eea17544e4bed4384c76d3d95be2c0688b9e27 (diff) |
error LSPResponse member
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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); |