mirror of
https://github.com/neovim/neovim.git
synced 2025-11-15 23:01:24 +00:00
fix(lsp): deprecate vim.lsp.get_buffers_by_client_id (#36449)
This commit is contained in:
@@ -39,6 +39,8 @@ LSP
|
||||
• *vim.lsp.semantic_tokens.stop()* Use `vim.lsp.semantic_tokens.enable(false)` instead
|
||||
• *vim.lsp.set_log_level()* Use `vim.lsp.log.set_level()` instead
|
||||
• *vim.lsp.get_log_path()* Use `vim.lsp.log.get_filename()` instead
|
||||
• *vim.lsp.get_buffers_by_client_id* Use `vim.lsp.get_client_by_id(id).attached_buffers`
|
||||
instead
|
||||
|
||||
LUA
|
||||
|
||||
|
||||
@@ -1112,16 +1112,6 @@ formatexpr({opts}) *vim.lsp.formatexpr()*
|
||||
• {timeout_ms} (`integer`, default: 500ms) The timeout period
|
||||
for the formatting request..
|
||||
|
||||
*vim.lsp.get_buffers_by_client_id()*
|
||||
get_buffers_by_client_id({client_id})
|
||||
Returns list of buffers attached to client_id.
|
||||
|
||||
Parameters: ~
|
||||
• {client_id} (`integer`) client id
|
||||
|
||||
Return: ~
|
||||
(`integer[]`) buffers list of buffer ids
|
||||
|
||||
get_client_by_id({client_id}) *vim.lsp.get_client_by_id()*
|
||||
Gets a client by id, or nil if the id is invalid or the client was
|
||||
stopped. The returned client may not yet be fully initialized.
|
||||
|
||||
Reference in New Issue
Block a user