diff options
| author | Peter Lithammer <peter.lithammer@gmail.com> | 2024-12-18 15:31:25 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-18 06:31:25 -0800 |
| commit | 07d5dc8938a7f5d8cf2b702ef4f26af926b6ac45 (patch) | |
| tree | 723e3e11c11b822124255f7702bc0a46d7047b45 /runtime/doc | |
| parent | f9eb68f340f9c0dbf3b6b2da3ddbab2d5be21b61 (diff) | |
| download | rneovim-07d5dc8938a7f5d8cf2b702ef4f26af926b6ac45.tar.gz rneovim-07d5dc8938a7f5d8cf2b702ef4f26af926b6ac45.tar.bz2 rneovim-07d5dc8938a7f5d8cf2b702ef4f26af926b6ac45.zip | |
feat(lsp): show server version in `:checkhealth` #31611
Problem:
Language server version information missing from `:checkhealth vim.lsp`.
Solution:
Store `InitializeResult.serverInfo.version` from the `initialize`
response and display for each client in `:checkhealth vim.lsp`.
Diffstat (limited to 'runtime/doc')
| -rw-r--r-- | runtime/doc/lsp.txt | 3 | ||||
| -rw-r--r-- | runtime/doc/news.txt | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt index 83d191ed48..228bbafdd2 100644 --- a/runtime/doc/lsp.txt +++ b/runtime/doc/lsp.txt @@ -1126,6 +1126,9 @@ Lua module: vim.lsp.client *lsp-client* • {server_capabilities} (`lsp.ServerCapabilities?`) Response from the server sent on `initialize` describing the server's capabilities. + • {server_info} (`lsp.ServerInfo?`) Response from the server + sent on `initialize` describing information + about the server. • {progress} (`vim.lsp.Client.Progress`) A ring buffer (|vim.ringbuf()|) containing progress messages sent by the server. See diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index 73704a143c..172fa4625c 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -115,6 +115,7 @@ LSP • |vim.lsp.util.make_position_params()|, |vim.lsp.util.make_range_params()| and |vim.lsp.util.make_given_range_params()| now require the `position_encoding` parameter. +• `:checkhealth vim.lsp` displays the server version (if available). LUA |