diff options
author | pommicket <pommicket@gmail.com> | 2023-08-04 19:35:48 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-08-04 19:35:48 -0400 |
commit | 45d69107725a02cf6d912a571b771da3ef5abfbf (patch) | |
tree | 6b5d44104f57074dc00f1bab8eed986ca707b8a2 /ted.h | |
parent | f278b832dc6e085d05b243bbae2af82e78e36d6d (diff) |
textDocument/documentLink parsing
Diffstat (limited to 'ted.h')
-rw-r--r-- | ted.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -665,6 +665,13 @@ typedef struct { Signature signatures[SIGNATURE_HELP_MAX]; } SignatureHelp; +/// "document link" information (LSP) +typedef struct { + LSPServerRequestID last_request; + // time when activation key was pressed + double key_press_time; +} DocumentLink; + /// "hover" information from LSP server typedef struct { LSPServerRequestID last_request; @@ -825,6 +832,7 @@ typedef struct Ted { bool building; Autocomplete autocomplete; SignatureHelp signature_help; + DocumentLink document_link; Hover hover; Definitions definitions; Highlights highlights; @@ -1498,6 +1506,10 @@ void definitions_selector_render(Ted *ted, Rect bounds); void definitions_selector_close(Ted *ted); void definitions_frame(Ted *ted); +// === ide-document-link.c === +void document_link_frame(Ted *ted); +void document_link_process_lsp_response(Ted *ted, const LSPResponse *response); + // === ide-highlights.c === void highlights_close(Ted *ted); void highlights_process_lsp_response(Ted *ted, LSPResponse *response); |