summaryrefslogtreecommitdiff
path: root/lsp.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-27 14:25:38 -0500
committerpommicket <pommicket@gmail.com>2022-12-27 14:25:38 -0500
commita11545e25cf2f65047158cc1fd7ed5a0f11a9fa0 (patch)
tree981d690b83058b3d858cd14c5b7ebcef0b0f1e60 /lsp.h
parentcb3f9f672343a98ab8bae0479a7c2e7570c37609 (diff)
handle window/showMessageRequest (hopefully)
Diffstat (limited to 'lsp.h')
-rw-r--r--lsp.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/lsp.h b/lsp.h
index 7fce761..5452dc2 100644
--- a/lsp.h
+++ b/lsp.h
@@ -25,20 +25,20 @@ typedef enum {
LSP_REQUEST_NONE,
// client-to-server
- LSP_REQUEST_INITIALIZE,
- LSP_REQUEST_INITIALIZED,
- LSP_REQUEST_SHUTDOWN,
- LSP_REQUEST_EXIT,
- LSP_REQUEST_DID_OPEN,
- LSP_REQUEST_DID_CLOSE,
- LSP_REQUEST_DID_CHANGE,
- LSP_REQUEST_COMPLETION,
- LSP_REQUEST_DID_CHANGE_WORKSPACE_FOLDERS,
+ LSP_REQUEST_INITIALIZE, // initialize
+ LSP_REQUEST_INITIALIZED, // initialized
+ LSP_REQUEST_SHUTDOWN, // shutdown
+ LSP_REQUEST_EXIT, // exit
+ LSP_REQUEST_DID_OPEN, // textDocument/didOpen
+ LSP_REQUEST_DID_CLOSE, // textDocument/didClose
+ LSP_REQUEST_DID_CHANGE, // textDocument/didChange
+ LSP_REQUEST_COMPLETION, // textDocument/completion
+ LSP_REQUEST_DID_CHANGE_WORKSPACE_FOLDERS, // workspace/didChangeWorkspaceFolders
// server-to-client
- LSP_REQUEST_SHOW_MESSAGE,
- LSP_REQUEST_LOG_MESSAGE,
- LSP_REQUEST_WORKSPACE_FOLDERS, // NOTE: this is handled directly in lsp-parse.c (because it only needs information from the LSP struct)
+ LSP_REQUEST_SHOW_MESSAGE, // window/showMessage and window/showMessageRequest
+ LSP_REQUEST_LOG_MESSAGE, // window/logMessage
+ LSP_REQUEST_WORKSPACE_FOLDERS, // workspace/workspaceFolders - NOTE: this is handled directly in lsp-parse.c (because it only needs information from the LSP struct)
} LSPRequestType;
typedef struct {