diff options
author | pommicket <pommicket@gmail.com> | 2022-12-22 18:19:02 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-22 18:19:02 -0500 |
commit | 6205e83793eff547d404fa5bde747076a1191893 (patch) | |
tree | e6dffd5f6ac53ed43195ccec6f57918dbfd2e7dd /lsp.h | |
parent | 23e138019964662b4e847770eeda2bb5d3130f7a (diff) |
didClose notification, better completion
Diffstat (limited to 'lsp.h')
-rw-r--r-- | lsp.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -36,6 +36,7 @@ typedef enum { LSP_REQUEST_INITIALIZE, LSP_REQUEST_INITIALIZED, LSP_REQUEST_DID_OPEN, + LSP_REQUEST_DID_CLOSE, LSP_REQUEST_DID_CHANGE, LSP_REQUEST_COMPLETION, LSP_REQUEST_SHUTDOWN, @@ -53,6 +54,10 @@ typedef struct { char *file_contents; } LSPRequestDidOpen; +typedef struct { + DocumentID document; +} LSPRequestDidClose; + // see TextDocumentContentChangeEvent in the LSP spec typedef struct { LSPRange range; @@ -93,6 +98,7 @@ typedef struct { LSPRequestType type; union { LSPRequestDidOpen open; + LSPRequestDidClose close; LSPRequestDidChange change; LSPRequestCompletion completion; // for LSP_SHOW_MESSAGE and LSP_LOG_MESSAGE |