-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can :LspInfo (:checkhealth lspconfig) show more detailed info? #3376
Comments
This comment has been minimized.
This comment has been minimized.
updated proposal. |
aha okay so can we add a health field instead of |
No. That wouldn't be any different than the existing What I'm asking is first, what info does the LSP client already know, that can be displayed by checkhealth. Does And why isn't |
Because there could be multiple |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
yes, that is the idea :) PR welcome...
we should truncate the output. Done: #3388 |
Added Probably need to add status command to each config. |
No. If server commands can't be bothered to provide |
This comment has been minimized.
This comment has been minimized.
Thanks, that was a regression. Fixed in #3402 |
Something I'd like to see is whether an LSP has document formatting support. I have a I'm not sure this should be included in lspconfig or if a new API should exist to allow end-users to configure additional status functions to be ran for all language servers. |
#3509 (comment) mentions serverInfo.version |
Description
#3375 removes an undocumented
config.lspinfo
extension point that was intended to allow config-specific augmentation of the LspInfo report. Can information such as tool versions be derived from LSP client info and/or server responses instead?Example use case: #1693 which wants to report the "project file".
Proposal
<cmd> --version
result. 3375, 3383 3388serverInfo.version
feat(lsp): add server version information to:checkhealth
neovim#31611workspace/configuration
, so it knows its own configuration. Why can't LspInfo ask the cient for this kind of info?workspace/workspaceFolders
, which sounds related toinitialize
,workspace/didChangeConfiguration
, etc. If that info is available via e.g.vim.lsp.get_clients()
, then LspInfo can use it. If info isn't available viavim.lsp.get_clients()
, then question is why, and should it be?suggested by @glacambre :
Maybe
vim.lsp.Client
could have astatusCmds: string[]
field which defines how "status" can be reported by a server.The text was updated successfully, but these errors were encountered: