diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-09 16:32:05 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-09 16:32:05 +0800 |
commit | 916b8563cc327af32a5c3dccfdb5434711d83377 (patch) | |
tree | d21c0503425c168ae019e9e358cc278715639eca /script/core/hover/init.lua | |
parent | 3827d18e5b84d5372334ee8151362f935edf8ac4 (diff) | |
download | lua-language-server-916b8563cc327af32a5c3dccfdb5434711d83377.zip |
view infer must specify uri
Diffstat (limited to 'script/core/hover/init.lua')
-rw-r--r-- | script/core/hover/init.lua | 2 |
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 = {} |