mirror of
https://github.com/neovim/neovim.git
synced 2024-09-17 20:58:20 -04:00
fix(lsp): return call hierarchy item, not the index (#30145)
This commit is contained in:
parent
0e394f136f
commit
d9ccd828b0
@ -464,7 +464,7 @@ local function pick_call_hierarchy_item(call_hierarchy_items)
|
||||
if choice < 1 or choice > #items then
|
||||
return
|
||||
end
|
||||
return choice
|
||||
return call_hierarchy_items[choice]
|
||||
end
|
||||
|
||||
--- @param method string
|
||||
|
Loading…
Reference in New Issue
Block a user