From 87c8bd6eb27edb4bfc539967235c3a1e2f8d77e4 Mon Sep 17 00:00:00 2001 From: pommicket Date: Tue, 3 Jan 2023 17:29:19 -0500 Subject: go to declaration --- lsp.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lsp.h') diff --git a/lsp.h b/lsp.h index c256ec7..f5404b1 100644 --- a/lsp.h +++ b/lsp.h @@ -65,6 +65,7 @@ typedef enum { LSP_REQUEST_SIGNATURE_HELP, // textDocument/signatureHelp LSP_REQUEST_HOVER, // textDocument/hover LSP_REQUEST_DEFINITION, // textDocument/definition + LSP_REQUEST_DECLARATION, // textDocument/declaration LSP_REQUEST_HIGHLIGHT, // textDocument/documentHighlight LSP_REQUEST_REFERENCES, // textDocument/references LSP_REQUEST_RENAME, // textDocument/rename @@ -200,6 +201,7 @@ typedef struct { LSPRequestCompletion completion; LSPRequestSignatureHelp signature_help; LSPRequestHover hover; + // LSP_REQUEST_DEFINITION, LSP_REQUEST_DECLARATION, or LSP_REQUEST_TYPE_DEFINITION LSPRequestDefinition definition; LSPRequestHighlight highlight; LSPRequestReferences references; @@ -454,6 +456,7 @@ typedef struct { LSPResponseCompletion completion; LSPResponseSignatureHelp signature_help; LSPResponseHover hover; + // LSP_REQUEST_DEFINITION, LSP_REQUEST_DECLARATION, or LSP_REQUEST_TYPE_DEFINITION LSPResponseDefinition definition; LSPResponseWorkspaceSymbols workspace_symbols; LSPResponseRename rename; @@ -480,6 +483,7 @@ typedef struct { bool completion_support; bool hover_support; bool definition_support; + bool declaration_support; bool workspace_symbols_support; bool highlight_support; // support for multiple root folders -- cgit v1.2.3