summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-07 16:19:58 -0500
committerpommicket <pommicket@gmail.com>2023-01-07 16:19:58 -0500
commitcb55279a20865fcfde23a160233155d23a09a03b (patch)
tree588764775a2f415aa7a78b02bb398578d6df0133 /ted.h
parent66da8ac5dcfe02d3aa79f72ba415235eb872ec1d (diff)
hover/signature cancellation
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ted.h b/ted.h
index 500ba0d..6300c0b 100644
--- a/ted.h
+++ b/ted.h
@@ -416,6 +416,7 @@ typedef struct {
// "signature help" (LSP) is thing that shows the current parameter, etc.
typedef struct {
+ LSPServerRequestID last_request;
// should we resend a signature help request this frame?
bool retrigger;
// if signature_count = 0, signature help is closed
@@ -425,6 +426,7 @@ typedef struct {
// "hover" information from LSP server
typedef struct {
+ LSPServerRequestID last_request;
// is some hover info being displayed?
bool open;
// text to display
@@ -432,7 +434,6 @@ typedef struct {
// where the hover data is coming from.
// we use this to check if we need to refresh it.
LSPDocumentPosition requested_position;
- LSPID requested_lsp;
LSPRange range;
double time; // how long the cursor has been hovering for
} Hover;
@@ -1367,6 +1368,7 @@ void ted_go_to_position(Ted *ted, const char *path, u32 line, u32 index, bool is
// go to this LSP document position, opening a new buffer containing the file if necessary.
void ted_go_to_lsp_document_position(Ted *ted, LSP *lsp, LSPDocumentPosition position);
// cancel this LSP request. also zeroes *request
+// if *request is zeroed, this does nothing.
void ted_cancel_lsp_request(Ted *ted, LSPServerRequestID *request);
// how tall is a line buffer?
float ted_line_buffer_height(Ted *ted);