diff options
author | pommicket <pommicket@gmail.com> | 2022-12-19 11:00:45 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-19 11:00:45 -0500 |
commit | 8deb7afed44d7be52cb450c3177ecc8e63fd46eb (patch) | |
tree | 50dbc44e54bf7d06a9e118d73e167f2a116b72ee /lsp.h | |
parent | 70d19dbf9fc9bcbbcd0208b4b6e42017fcc5e826 (diff) |
much better system for writing requests
Diffstat (limited to 'lsp.h')
-rw-r--r-- | lsp.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 { |