summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/main.c b/main.c
index 3468577..ffc8610 100644
--- a/main.c
+++ b/main.c
@@ -9,7 +9,7 @@
- JSON syntax highlighting
- separate signature-help setting (dont use trigger-characters)
- check if there are any other non-optional/nice-to-have-support-for server-to-client requests
-- do something with lsp->error
+- better non-error window/showMessage(Request)
- document lsp.h and lsp.c.
- maximum queue size for requests/responses just in case?
- idea: configurable timeout
@@ -905,6 +905,7 @@ int main(int argc, char **argv) {
case LSP_RESPONSE: {
LSPResponse *r = &message.u.response;
autocomplete_process_lsp_response(ted, r);
+ signature_help_process_lsp_response(ted, r);
} break;
}
lsp_message_free(&message);
@@ -1038,6 +1039,12 @@ int main(int argc, char **argv) {
buffer_clearerr(buffer);
}
}
+ for (int i = 0; ted->lsps[i]; ++i) {
+ LSP *lsp = ted->lsps[i];
+ if (lsp_get_error(lsp, NULL, 0, false)) {
+ lsp_get_error(lsp, ted->error, sizeof ted->error, true);
+ }
+ }
// check if there's a new error
if (ted_haserr(ted)) {