summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-08-04 19:35:48 -0400
committerpommicket <pommicket@gmail.com>2023-08-04 19:35:48 -0400
commit45d69107725a02cf6d912a571b771da3ef5abfbf (patch)
tree6b5d44104f57074dc00f1bab8eed986ca707b8a2 /ted.h
parentf278b832dc6e085d05b243bbae2af82e78e36d6d (diff)
textDocument/documentLink parsing
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/ted.h b/ted.h
index 2cbf305..ea2fd68 100644
--- a/ted.h
+++ b/ted.h
@@ -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);