summaryrefslogtreecommitdiff
path: root/lsp.c
diff options
context:
space:
mode:
Diffstat (limited to 'lsp.c')
-rw-r--r--lsp.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lsp.c b/lsp.c
index bd01bbd..3dc0fee 100644
--- a/lsp.c
+++ b/lsp.c
@@ -49,6 +49,8 @@ void lsp_request_free(LSPRequest *r) {
case LSP_REQUEST_HOVER:
case LSP_REQUEST_DEFINITION:
case LSP_REQUEST_DECLARATION:
+ case LSP_REQUEST_TYPE_DEFINITION:
+ case LSP_REQUEST_IMPLEMENTATION:
case LSP_REQUEST_REFERENCES:
case LSP_REQUEST_HIGHLIGHT:
case LSP_REQUEST_DID_CLOSE:
@@ -179,6 +181,10 @@ static bool lsp_supports_request(LSP *lsp, const LSPRequest *request) {
return cap->definition_support;
case LSP_REQUEST_DECLARATION:
return cap->declaration_support;
+ case LSP_REQUEST_TYPE_DEFINITION:
+ return cap->type_definition_support;
+ case LSP_REQUEST_IMPLEMENTATION:
+ return cap->implementation_support;
case LSP_REQUEST_WORKSPACE_SYMBOLS:
return cap->workspace_symbols_support;
case LSP_REQUEST_RENAME:
@@ -220,6 +226,8 @@ static bool request_type_is_notification(LSPRequestType type) {
case LSP_REQUEST_HOVER:
case LSP_REQUEST_DEFINITION:
case LSP_REQUEST_DECLARATION:
+ case LSP_REQUEST_TYPE_DEFINITION:
+ case LSP_REQUEST_IMPLEMENTATION:
case LSP_REQUEST_REFERENCES:
case LSP_REQUEST_RENAME:
case LSP_REQUEST_WORKSPACE_SYMBOLS: