summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-01-02 13:44:26 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-01-02 13:44:26 +0800
commit09a88a27fa3864c22fae842725c9f625cd4c766c (patch)
treec917c1b02e8cabc3e09d79a565950bc25d77ba8d
parent11d52acfc04bb72929eb49eed432f40a4e29579a (diff)
downloadlua-language-server-09a88a27fa3864c22fae842725c9f625cd4c766c.zip
修正报错
-rw-r--r--server/src/core/hover.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/src/core/hover.lua b/server/src/core/hover.lua
index d0886e7c..9a2500f0 100644
--- a/server/src/core/hover.lua
+++ b/server/src/core/hover.lua
@@ -271,6 +271,10 @@ local function getValueHover(name, valueType, result, lib)
end
end
+ if type(valueType) == 'table' then
+ valueType = valueType[1]
+ end
+
if not OriginTypes[valueType] then
valueType = '*' .. valueType
end