summaryrefslogtreecommitdiff
path: root/lsp.h
diff options
context:
space:
mode:
Diffstat (limited to 'lsp.h')
-rw-r--r--lsp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lsp.h b/lsp.h
index 09cb0b0..d8d8029 100644
--- a/lsp.h
+++ b/lsp.h
@@ -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