summaryrefslogtreecommitdiff
path: root/lsp.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-22 18:19:02 -0500
committerpommicket <pommicket@gmail.com>2022-12-22 18:19:02 -0500
commit6205e83793eff547d404fa5bde747076a1191893 (patch)
treee6dffd5f6ac53ed43195ccec6f57918dbfd2e7dd /lsp.h
parent23e138019964662b4e847770eeda2bb5d3130f7a (diff)
didClose notification, better completion
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