summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-31 12:12:07 -0500
committerpommicket <pommicket@gmail.com>2022-12-31 12:12:07 -0500
commitb45acfb66cd4c4474d3fd951d2a1b0fe3b63ae0b (patch)
tree61209fe68bd406e26e4f356043c7836668b8cd5b /ted.h
parent02faedf9bf7e826bc78161f8cf07ffca5d2dbe57 (diff)
better LSP request cancelling
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/ted.h b/ted.h
index 56185fc..8b73898 100644
--- a/ted.h
+++ b/ted.h
@@ -367,7 +367,6 @@ enum {
typedef struct {
bool open; // is the autocomplete window open?
- bool waiting_for_lsp;
bool is_list_complete; // should the completions array be updated when more characters are typed?
// what trigger caused the last request for completions:
@@ -375,9 +374,11 @@ typedef struct {
// or one of the TRIGGER_* constants above
uint32_t trigger;
+ LSPID last_request_lsp;
+ LSPRequestID last_request_id;
// when we sent the request to the LSP for completions
// (this is used to figure out when we should display "Loading...")
- double lsp_request_time;
+ double last_request_time;
Autocompletion *completions; // dynamic array of all completions
u32 *suggested; // dynamic array of completions to be suggested (indices into completions)