summaryrefslogtreecommitdiff
path: root/ted.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-09-07 14:38:49 -0400
committerpommicket <pommicket@gmail.com>2023-09-07 14:38:49 -0400
commit815d652b570f53c989f62d0c7db847d7d6dfd940 (patch)
treec977583cfcc5b682a8cee5546bcf3c837014df1b /ted.c
parentbb4b7774aabc2686f936935b02899b1aa0bf1f2b (diff)
textDocument/publishDiagnostics parsing
Diffstat (limited to 'ted.c')
-rw-r--r--ted.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ted.c b/ted.c
index 762b269..7ce2e87 100644
--- a/ted.c
+++ b/ted.c
@@ -875,3 +875,9 @@ bool ted_close_buffer_with_file(Ted *ted, const char *path) {
ted_close_buffer(ted, buffer);
return true;
}
+
+void ted_process_publish_diagnostics(Ted *ted, LSPRequest *request) {
+ assert(request->type == LSP_REQUEST_PUBLISH_DIAGNOSTICS);
+ LSPRequestPublishDiagnostics *pub = &request->data.publish_diagnostics;
+ printf("%u diagnostics\n",arr_len(pub->diagnostics));
+}