lsp: add $/progress report (#13294)

Heavily inspired by https://github.com/nvim-lua/lsp-status.nvim.
listen to the LspProgressUpdate event to update your statusline.
This commit is contained in:
Matthieu Coudron
2020-12-20 21:59:25 +01:00
committed by GitHub
parent b1711e6f92
commit 1e59134834
4 changed files with 103 additions and 0 deletions

View File

@@ -569,6 +569,8 @@ function lsp.start_client(config)
-- TODO(remove-callbacks)
callbacks = handlers;
handlers = handlers;
-- for $/progress report
messages = { name = name, messages = {}, progress = {}, status = {} }
}
-- Store the uninitialized_clients for cleanup in case we exit before initialize finishes.