fix(lsp): deprecate vim.lsp.get_buffers_by_client_id (#36449)

This commit is contained in:
Maria Solano
2025-11-10 06:58:56 -08:00
committed by GitHub
parent 9bdb011a50
commit 70ea589d79
6 changed files with 12 additions and 13 deletions

View File

@@ -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

View File

@@ -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.