Skip to content

Commit 5a747a9

Browse files
authored
fix(lsp): call hierarchy results processing (#2728)
1 parent 205f469 commit 5a747a9

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

lua/telescope/builtin/__lsp.lua

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,12 @@ local function call_hierarchy(opts, method, title, direction, item)
9595
local locations = {}
9696
for _, ch_call in pairs(result) do
9797
local ch_item = ch_call[direction]
98-
for _, range in pairs(ch_call.fromRanges) do
99-
table.insert(locations, {
100-
filename = vim.uri_to_fname(ch_item.uri),
101-
text = ch_item.name,
102-
lnum = range.start.line + 1,
103-
col = range.start.character + 1,
104-
})
105-
end
98+
table.insert(locations, {
99+
filename = vim.uri_to_fname(ch_item.uri),
100+
text = ch_item.name,
101+
lnum = ch_item.range.start.line + 1,
102+
col = ch_item.range.start.character + 1,
103+
})
106104
end
107105

108106
pickers

0 commit comments

Comments
 (0)