diff options
author | pommicket <pommicket@gmail.com> | 2022-12-31 12:12:07 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-31 12:12:07 -0500 |
commit | b45acfb66cd4c4474d3fd951d2a1b0fe3b63ae0b (patch) | |
tree | 61209fe68bd406e26e4f356043c7836668b8cd5b /ted.h | |
parent | 02faedf9bf7e826bc78161f8cf07ffca5d2dbe57 (diff) |
better LSP request cancelling
Diffstat (limited to 'ted.h')
-rw-r--r-- | ted.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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) |