diff options
author | pommicket <pommicket@gmail.com> | 2023-09-07 14:38:49 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-09-07 14:38:49 -0400 |
commit | 815d652b570f53c989f62d0c7db847d7d6dfd940 (patch) | |
tree | c977583cfcc5b682a8cee5546bcf3c837014df1b /ted.c | |
parent | bb4b7774aabc2686f936935b02899b1aa0bf1f2b (diff) |
textDocument/publishDiagnostics parsing
Diffstat (limited to 'ted.c')
-rw-r--r-- | ted.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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)); +} |