diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-01-02 13:44:26 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-01-02 13:44:26 +0800 |
commit | 09a88a27fa3864c22fae842725c9f625cd4c766c (patch) | |
tree | c917c1b02e8cabc3e09d79a565950bc25d77ba8d /server/src | |
parent | 11d52acfc04bb72929eb49eed432f40a4e29579a (diff) | |
download | lua-language-server-09a88a27fa3864c22fae842725c9f625cd4c766c.zip |
修正报错
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/core/hover.lua | 4 |
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 |