From 916b8563cc327af32a5c3dccfdb5434711d83377 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 9 Jun 2022 16:32:05 +0800 Subject: view infer must specify uri --- script/core/hover/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script/core/hover/init.lua') 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 = {} -- cgit v1.2.3