diff options
| author | Maria Solano <majosolano99@gmail.com> | 2025-11-10 06:58:56 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-10 06:58:56 -0800 |
| commit | 70ea589d79f66ea29cfc20451a1a177652a24f27 (patch) | |
| tree | fbc25fde28c02d6b21fe7629e700e53e438001b5 /runtime/lua/vim/lsp.lua | |
| parent | 9bdb011a50f25d80980750ca194efd0d18cae56c (diff) | |
| download | rneovim-70ea589d79f66ea29cfc20451a1a177652a24f27.tar.gz rneovim-70ea589d79f66ea29cfc20451a1a177652a24f27.tar.bz2 rneovim-70ea589d79f66ea29cfc20451a1a177652a24f27.zip | |
fix(lsp): deprecate `vim.lsp.get_buffers_by_client_id` (#36449)
Diffstat (limited to 'runtime/lua/vim/lsp.lua')
| -rw-r--r-- | runtime/lua/vim/lsp.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua index ca3d14a974..97cf8c55c3 100644 --- a/runtime/lua/vim/lsp.lua +++ b/runtime/lua/vim/lsp.lua @@ -1033,9 +1033,15 @@ end --- Returns list of buffers attached to client_id. --- +---@deprecated ---@param client_id integer client id ---@return integer[] buffers list of buffer ids function lsp.get_buffers_by_client_id(client_id) + vim.deprecate( + 'vim.lsp.get_buffers_by_client_id()', + 'vim.lsp.get_client_by_id(id).attached_buffers', + '0.13' + ) local client = lsp.get_client_by_id(client_id) return client and vim.tbl_keys(client.attached_buffers) or {} end |