diff options
author | pommicket <pommicket@gmail.com> | 2022-12-20 14:38:48 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-20 14:38:48 -0500 |
commit | 9dc4d70511862004661cd5b0c02adc500c35f42e (patch) | |
tree | 988958faba1d695e314c1d5d5e91d0f4285e5b7c /lsp.h | |
parent | 6b88ac48b9731771f85df727754a3bab998d7d2b (diff) |
working didChange
Diffstat (limited to 'lsp.h')
-rw-r--r-- | lsp.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,6 +1,7 @@ // @TODO: // - use document IDs instead of strings (also lets us use real document version numbers) // - document this and lsp.c. +// - deal with "Save as" (generate didOpen) // - maximum queue size for requests/responses just in case? // - delete old sent requests // (if the server never sends a response) @@ -55,6 +56,7 @@ typedef struct { // see TextDocumentContentChangeEvent in the LSP spec typedef struct { LSPRange range; + // new text. will be freed. you can use NULL for the empty string. char *text; } LSPDocumentChangeEvent; @@ -78,7 +80,7 @@ typedef struct { typedef struct { // freed by lsp_request_free - char *path; + char *document; LSPPosition pos; } LSPDocumentPosition; |