diff options
author | pommicket <pommicket@gmail.com> | 2023-01-03 18:01:04 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-01-03 18:01:04 -0500 |
commit | c0397f1f4c80e73a2e4ccd1946703fe6a5bb405e (patch) | |
tree | 5b95649c140083e2af4332bb92260842436f22c9 /lsp.c | |
parent | 87c8bd6eb27edb4bfc539967235c3a1e2f8d77e4 (diff) |
go to type definition
Diffstat (limited to 'lsp.c')
-rw-r--r-- | lsp.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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: |