Skip to content

Commit

Permalink
fix(lsp): send request only to needed clients
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jun 5, 2024
1 parent 4308b2a commit c147a75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/trouble/sources/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ function M.request(method, params, opts)
---@param client vim.lsp.Client
return Promise.all(vim.tbl_map(function(client)
return Promise.new(function(resolve)
vim.lsp.buf_request(buf, method, params, function(err, result)
client.request(method, params, function(err, result)
resolve({ client = client, result = result, err = err, params = params })
end)
end, buf)
end)
end, clients)):next(function(results)
---@param v trouble.lsp.Response<any,any>
Expand Down

0 comments on commit c147a75

Please sign in to comment.