summaryrefslogtreecommitdiff
path: root/lsp.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-09-29 13:29:56 -0400
committerpommicket <pommicket@gmail.com>2025-09-29 15:29:51 -0400
commit6c4baeebd88352399059a8df8d38ebe3511588ea (patch)
tree98db7bb4f36a47f8f9ac5a53dcb06e8cd19cf762 /lsp.c
parentec03a105ce7a6e396cfd287cbfe902d65bac1474 (diff)
Start code actions
Diffstat (limited to 'lsp.c')
-rw-r--r--lsp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lsp.c b/lsp.c
index 2004bb7..4337099 100644
--- a/lsp.c
+++ b/lsp.c
@@ -125,6 +125,7 @@ void lsp_request_free(LSPRequest *r) {
case LSP_REQUEST_DID_OPEN:
case LSP_REQUEST_FORMATTING:
case LSP_REQUEST_RANGE_FORMATTING:
+ case LSP_REQUEST_CODE_ACTION:
break;
case LSP_REQUEST_PUBLISH_DIAGNOSTICS: {
LSPRequestPublishDiagnostics *pub = &r->data.publish_diagnostics;
@@ -237,6 +238,8 @@ static bool lsp_supports_request(LSP *lsp, const LSPRequest *request) {
return cap->open_close_support;
case LSP_REQUEST_DID_CHANGE:
return cap->sync_support;
+ case LSP_REQUEST_CODE_ACTION:
+ return cap->code_action_support;
case LSP_REQUEST_INITIALIZE:
case LSP_REQUEST_INITIALIZED:
case LSP_REQUEST_CANCEL:
@@ -320,6 +323,7 @@ static bool request_type_is_notification(LSPRequestType type) {
case LSP_REQUEST_DOCUMENT_LINK:
case LSP_REQUEST_FORMATTING:
case LSP_REQUEST_RANGE_FORMATTING:
+ case LSP_REQUEST_CODE_ACTION:
return false;
}
assert(0);