mirror of
https://github.com/neovim/neovim
synced 2025-07-16 09:11:51 +00:00
fix(lsp): return call hierarchy item, not the index (#30145)
(cherry picked from commit d9ccd828b0
)
This commit is contained in:
committed by
Mathias Fußenegger
parent
7834d80b81
commit
d593b20017
@ -448,7 +448,7 @@ local function pick_call_hierarchy_item(call_hierarchy_items)
|
|||||||
if choice < 1 or choice > #items then
|
if choice < 1 or choice > #items then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
return choice
|
return call_hierarchy_items[choice]
|
||||||
end
|
end
|
||||||
|
|
||||||
--- @param method string
|
--- @param method string
|
||||||
|
Reference in New Issue
Block a user