diff options
author | jdrouhard <john@jmdtech.org> | 2021-10-29 07:45:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-29 05:45:01 -0700 |
commit | d1c470957b49380ec5ceba603dbd85a14f60f09b (patch) | |
tree | 89b2453ed810b27ee86c9f0d8c7f4efb0e60f098 /runtime/doc | |
parent | 1dbbaf89bf5d3bcd1edac3af9938c2e2dd18f816 (diff) | |
download | rneovim-d1c470957b49380ec5ceba603dbd85a14f60f09b.tar.gz rneovim-d1c470957b49380ec5ceba603dbd85a14f60f09b.tar.bz2 rneovim-d1c470957b49380ec5ceba603dbd85a14f60f09b.zip |
feat(lsp): track pending+cancel requests on client object #15949
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/lsp.txt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt index 5549d3c180..30e8ff658b 100644 --- a/runtime/doc/lsp.txt +++ b/runtime/doc/lsp.txt @@ -452,6 +452,22 @@ LspSignatureActiveParameter |vim.lsp.handlers.signature_help()|. ============================================================================== +EVENTS *lsp-events* + +LspProgressUpdate *LspProgressUpdate* + Upon receipt of a progress notification from the server. See + |vim.lsp.util.get_progress_messages()|. + +LspRequest *LspRequest* + After a change to the active set of pending LSP requests. See {requests} + in |vim.lsp.client|. + +Example: > + autocmd User LspProgressUpdate redrawstatus + autocmd User LspRequest redrawstatus +< + +============================================================================== Lua module: vim.lsp *lsp-core* buf_attach_client({bufnr}, {client_id}) *vim.lsp.buf_attach_client()* @@ -608,6 +624,11 @@ client() *vim.lsp.client* server. • {handlers} (table): The handlers used by the client as described in |lsp-handler|. + • {requests} (table): The current pending requests in flight + to the server. Entries are key-value pairs with the key + being the request ID while the value is a table with `type`, + `bufnr`, and `method` key-value pairs. `type` is either "pending" + for an active request, or "cancel" for a cancel request. • {config} (table): copy of the table that was passed by the user to |vim.lsp.start_client()|. • {server_capabilities} (table): Response from the server |