mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
LSP: eliminate lsp.print_debug_info…()
Reduce API surface. We should not add functions unless they are really needed. Users should be nudged to use vim.inspect() directly.
This commit is contained in:
@@ -320,9 +320,6 @@ buf_notify({bufnr}, {method}, {params}) *vim.lsp.buf_notify()*
|
|||||||
Return: ~
|
Return: ~
|
||||||
nil
|
nil
|
||||||
|
|
||||||
buf_print_debug_info({bufnr}) *vim.lsp.buf_print_debug_info()*
|
|
||||||
TODO: Documentation
|
|
||||||
|
|
||||||
*vim.lsp.buf_request()*
|
*vim.lsp.buf_request()*
|
||||||
buf_request({bufnr}, {method}, {params}, {callback})
|
buf_request({bufnr}, {method}, {params}, {callback})
|
||||||
Sends an async request for all active clients attached to the
|
Sends an async request for all active clients attached to the
|
||||||
@@ -479,9 +476,6 @@ once({fn}) *vim.lsp.once()*
|
|||||||
optional_validator({fn}) *vim.lsp.optional_validator()*
|
optional_validator({fn}) *vim.lsp.optional_validator()*
|
||||||
TODO: Documentation
|
TODO: Documentation
|
||||||
|
|
||||||
print_debug_info() *vim.lsp.print_debug_info()*
|
|
||||||
TODO: Documentation
|
|
||||||
|
|
||||||
request({method}, {params}, {callback}) *vim.lsp.request()*
|
request({method}, {params}, {callback}) *vim.lsp.request()*
|
||||||
TODO: Documentation
|
TODO: Documentation
|
||||||
|
|
||||||
|
|||||||
@@ -971,19 +971,6 @@ function lsp.buf_get_clients(bufnr)
|
|||||||
return result
|
return result
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Prints debug info about the current buffer clients.
|
|
||||||
---
|
|
||||||
--- Result of this function cannot be relied upon and may change.
|
|
||||||
function lsp.buf_print_debug_info(bufnr)
|
|
||||||
print(vim.inspect(lsp.buf_get_clients(bufnr)))
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Print some debug information about all LSP related things.
|
|
||||||
-- The output of this function should not be relied upon and may change.
|
|
||||||
function lsp.print_debug_info()
|
|
||||||
print(vim.inspect({ clients = active_clients }))
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Log level dictionary with reverse lookup as well.
|
-- Log level dictionary with reverse lookup as well.
|
||||||
--
|
--
|
||||||
-- Can be used to lookup the number from the name or the
|
-- Can be used to lookup the number from the name or the
|
||||||
|
|||||||
Reference in New Issue
Block a user