aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/util.lua
diff options
context:
space:
mode:
authorMathias Fußenegger <mfussenegger@users.noreply.github.com>2023-07-17 18:27:16 +0200
committerGitHub <noreply@github.com>2023-07-17 18:27:16 +0200
commit1b9ccd38a12f8fdbdff51ef0b3ff363540f745ec (patch)
treee9433c169c338482cd4692ead619c4440703d527 /runtime/lua/vim/lsp/util.lua
parentd0d132fbd055834cbecb3d4e3a123a6ea8f099ec (diff)
downloadrneovim-1b9ccd38a12f8fdbdff51ef0b3ff363540f745ec.tar.gz
rneovim-1b9ccd38a12f8fdbdff51ef0b3ff363540f745ec.tar.bz2
rneovim-1b9ccd38a12f8fdbdff51ef0b3ff363540f745ec.zip
feat(lsp)!: rename vim.lsp.get_active_clients to get_clients (#24113)
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r--runtime/lua/vim/lsp/util.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua
index 0da88f800e..59b9916f64 100644
--- a/runtime/lua/vim/lsp/util.lua
+++ b/runtime/lua/vim/lsp/util.lua
@@ -360,7 +360,7 @@ function M.get_progress_messages()
local new_messages = {}
local progress_remove = {}
- for _, client in ipairs(vim.lsp.get_active_clients()) do
+ for _, client in ipairs(vim.lsp.get_clients()) do
local groups = {}
for progress in client.progress do
local value = progress.value
@@ -1841,7 +1841,7 @@ function M.locations_to_items(locations, offset_encoding)
'locations_to_items must be called with valid offset encoding',
vim.log.levels.WARN
)
- offset_encoding = vim.lsp.get_active_clients({ bufnr = 0 })[1].offset_encoding
+ offset_encoding = vim.lsp.get_clients({ bufnr = 0 })[1].offset_encoding
end
local items = {}
@@ -2036,7 +2036,7 @@ function M._get_offset_encoding(bufnr)
local offset_encoding
- for _, client in pairs(vim.lsp.get_active_clients({ bufnr = bufnr })) do
+ for _, client in pairs(vim.lsp.get_clients({ bufnr = bufnr })) do
if client.offset_encoding == nil then
vim.notify_once(
string.format(
@@ -2183,7 +2183,7 @@ function M.character_offset(buf, row, col, offset_encoding)
'character_offset must be called with valid offset encoding',
vim.log.levels.WARN
)
- offset_encoding = vim.lsp.get_active_clients({ bufnr = buf })[1].offset_encoding
+ offset_encoding = vim.lsp.get_clients({ bufnr = buf })[1].offset_encoding
end
-- If the col is past the EOL, use the line length.
if col > #line then