summaryrefslogtreecommitdiff
path: root/script/core/hover/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-09 16:32:05 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-09 16:32:05 +0800
commit916b8563cc327af32a5c3dccfdb5434711d83377 (patch)
treed21c0503425c168ae019e9e358cc278715639eca /script/core/hover/init.lua
parent3827d18e5b84d5372334ee8151362f935edf8ac4 (diff)
downloadlua-language-server-916b8563cc327af32a5c3dccfdb5434711d83377.zip
view infer must specify uri
Diffstat (limited to 'script/core/hover/init.lua')
-rw-r--r--script/core/hover/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/hover/init.lua b/script/core/hover/init.lua
index 7231944a..949156aa 100644
--- a/script/core/hover/init.lua
+++ b/script/core/hover/init.lua
@@ -39,7 +39,7 @@ local function getHover(source)
end
local oop
- if vm.getInfer(source):view() == 'function' then
+ if vm.getInfer(source):view(guide.getUri(source)) == 'function' then
local defs = vm.getDefs(source)
-- make sure `function` is before `doc.type.function`
local orders = {}