summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-28 11:45:07 -0500
committerpommicket <pommicket@gmail.com>2022-12-28 11:45:07 -0500
commit11df4f10197d67e5b61898bd98cdfccc1159dd26 (patch)
tree7639b03aa348183eb563f6179c2435b5ea28a106 /main.c
parent47adb1651d35dcc545850916c4a16b747901dba5 (diff)
parsing signature help
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)) {