summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-30 11:05:19 -0500
committerpommicket <pommicket@gmail.com>2022-12-30 11:05:19 -0500
commit4232df89b50754779814a97f374451fce2e36447 (patch)
treec7bfa4bb445717cc34b24a905b3c4b8398126422 /ted.h
parent61db5a1a07f4fbe953d7cab9b6714fe5157a1265 (diff)
global request IDs
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/ted.h b/ted.h
index fd2cf9f..6f4174a 100644
--- a/ted.h
+++ b/ted.h
@@ -242,8 +242,8 @@ typedef struct {
u32 nlines;
u32 lines_capacity;
- // which LSP this document is open in (this is a LSPID)
- u32 lsp_opened_in;
+ // which LSP this document is open in
+ LSPID lsp_opened_in;
u32 undo_history_write_pos; // where in the undo history was the last write? used by buffer_unsaved_changes
u32 first_line_on_screen, last_line_on_screen; // which lines are on screen? updated when buffer_render is called.
@@ -414,12 +414,11 @@ typedef struct {
} Hover;
typedef struct {
- // LSPID and ID of the last request which was sent out.
+ // ID of the last request which was sent out.
// used to process responses in chronological order (= ID order).
// if we got a response for the last request, or no requests have been made,
- // last_request_lsp is set to 0.
- LSPID last_request_lsp;
- u32 last_request_id;
+ // last_request_id is set to 0.
+ LSPRequestID last_request_id;
struct timespec last_request_time;
} Definitions;