Skip to content

Commit

Permalink
fix(lsp): avoid overwriting uri of result (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
rcarriga committed Jul 16, 2021
1 parent 7de8bc4 commit 655391c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/trouble/providers/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ function M.definitions(win, buf, cb, _options)
return cb({})
end
for _, value in ipairs(result) do
value.uri = value.targetUri
value.range = value.targetSelectionRange
value.uri = value.targetUri or value.uri
value.range = value.targetSelectionRange or value.range
end
local ret = util.locations_to_items({ result }, 0)
cb(ret)
Expand Down

0 comments on commit 655391c

Please sign in to comment.