Skip to content

Commit

Permalink
fix: get all client from clients cache in manager.clients (#2365)
Browse files Browse the repository at this point in the history
  • Loading branch information
glepnir authored Dec 28, 2022
1 parent 42ca8ce commit 4329350
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lua/lspconfig/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -393,10 +393,12 @@ function M.server_per_root_dir_manager(make_config)

function manager.clients()
local res = {}
for _, id in pairs(clients) do
local client = lsp.get_client_by_id(id)
if client then
table.insert(res, client)
for _, client_ids in pairs(clients) do
for _, id in pairs(client_ids) do
local client = lsp.get_client_by_id(id)
if client then
table.insert(res, client)
end
end
end
return res
Expand Down

0 comments on commit 4329350

Please sign in to comment.