summaryrefslogtreecommitdiff
path: root/lsp.c
diff options
context:
space:
mode:
Diffstat (limited to 'lsp.c')
-rw-r--r--lsp.c7
1 files changed, 7 insertions, 0 deletions
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;
}