summaryrefslogtreecommitdiff
path: root/lsp.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-19 11:00:45 -0500
committerpommicket <pommicket@gmail.com>2022-12-19 11:00:45 -0500
commit8deb7afed44d7be52cb450c3177ecc8e63fd46eb (patch)
tree50dbc44e54bf7d06a9e118d73e167f2a116b72ee /lsp.h
parent70d19dbf9fc9bcbbcd0208b4b6e42017fcc5e826 (diff)
much better system for writing requests
Diffstat (limited to 'lsp.h')
-rw-r--r--lsp.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/lsp.h b/lsp.h
index 6a7ca24..170d883 100644
--- a/lsp.h
+++ b/lsp.h
@@ -18,6 +18,7 @@ typedef struct {
typedef struct {
u32 line;
+ // NOTE: this is the UTF-16 character index!
u32 character;
} LSPPosition;
@@ -79,9 +80,7 @@ typedef struct {
typedef struct {
// freed by lsp_request_free
char *path;
- u32 line;
- // the **UTF-16** "character" offset within the line
- u32 character;
+ LSPPosition pos;
} LSPDocumentPosition;
typedef struct {