diff options
author | pommicket <pommicket@gmail.com> | 2025-09-29 15:11:47 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-09-29 15:29:51 -0400 |
commit | 84da626a18ccc779aef4a178ee0097a93c959520 (patch) | |
tree | ea862eff35309f2cae3a0ab30112fb38647eafa2 /lsp.h | |
parent | 16b5baf3083c982220e9feb561f2f53f1720fe2a (diff) |
Send over diagnostics; this fixes code actions
Diffstat (limited to 'lsp.h')
-rw-r--r-- | lsp.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -171,6 +171,8 @@ typedef struct { /// URI to description of code /// e.g. for Rust's E0621, this would be https://doc.rust-lang.org/error_codes/E0621.html LSPString code_description_uri; + // raw diagnostic object, to be used with textDocument/codeAction + LSPString raw; } LSPDiagnostic; typedef struct { @@ -262,6 +264,7 @@ typedef struct { typedef struct { LSPDocumentID document; LSPRange range; + LSPString *raw_diagnostics; } LSPRequestCodeAction; typedef struct { @@ -945,6 +948,8 @@ LSPString lsp_response_add_json_string(LSPResponse *response, const JSON *json, LSPString lsp_request_add_json_string(LSPRequest *request, const JSON *json, JSONString string); /// free resources used by lsp-write.c void lsp_write_quit(void); +// convert JSON value back into string +char *json_reserialize(const JSON *json, JSONValue value); /// print server-to-client communication #define LSP_SHOW_S2C 1 |