Skip to content

Commit

Permalink
fix(lsp): dont process nil results
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jun 3, 2024
1 parent e49a490 commit 06a4892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/trouble/sources/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function M.request(method, params, opts)
end, clients)):next(function(results)
---@param v trouble.lsp.Response<any,any>
return vim.tbl_filter(function(v)
return v.result ~= nil
return v.result
end, results)
end)
end
Expand Down

0 comments on commit 06a4892

Please sign in to comment.