summaryrefslogtreecommitdiff
path: root/script/core/hover
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-06-10 20:02:20 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-06-10 20:02:20 +0800
commit9e6fa14b8ba6c1f9573a157f0282588222cbd525 (patch)
treebefa7151598750d932413acc312d84090457e5d6 /script/core/hover
parent22845a130683157df65b2868765758767f6116ae (diff)
downloadlua-language-server-9e6fa14b8ba6c1f9573a157f0282588222cbd525.zip
cleanup
Diffstat (limited to 'script/core/hover')
-rw-r--r--script/core/hover/label.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/hover/label.lua b/script/core/hover/label.lua
index 032f19c0..d96b149c 100644
--- a/script/core/hover/label.lua
+++ b/script/core/hover/label.lua
@@ -32,7 +32,7 @@ local function asDocFunction(source)
end
local function asDocTypeName(source)
- local defs = searcher.requestDefinition(source)
+ local defs = vm.getDefs(source)
for _, doc in ipairs(defs) do
if doc.type == 'doc.class.name' then
return 'class ' .. doc[1]