From 3a1af93e9c0f983da64070d3774596844c2a26e1 Mon Sep 17 00:00:00 2001 From: pommicket Date: Tue, 30 Sep 2025 10:42:13 -0400 Subject: Initial implementation of code actions --- lsp.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lsp.c') diff --git a/lsp.c b/lsp.c index 34548f0..9cf96fe 100644 --- a/lsp.c +++ b/lsp.c @@ -189,6 +189,13 @@ void lsp_response_free(LSPResponse *r) { case LSP_REQUEST_FORMATTING: arr_free(r->data.formatting.edits); break; + case LSP_REQUEST_CODE_ACTION: { + LSPResponseCodeAction *c = &r->data.code_action; + arr_foreach_ptr(c->actions, LSPCodeAction, action) { + arr_free(action->edit.changes); + } + arr_free(c->actions); + } break; default: break; } -- cgit v1.2.3