summaryrefslogtreecommitdiff
path: root/server/src/core/hover/hover.lua
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-22 20:39:13 +0800
committersumneko <sumneko@hotmail.com>2019-04-22 20:39:13 +0800
commit01143c5e09c15c4aae278a2728db753619b35530 (patch)
tree4a27a5648bb1ef7b5c9a441ea54812198944122a /server/src/core/hover/hover.lua
parentc5795bf0220f0da45c7962862675edfc28ebb0f4 (diff)
downloadlua-language-server-01143c5e09c15c4aae278a2728db753619b35530.zip
EmmyClass 也要显示表的内容
Diffstat (limited to 'server/src/core/hover/hover.lua')
-rw-r--r--server/src/core/hover/hover.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/src/core/hover/hover.lua b/server/src/core/hover/hover.lua
index a7fcca19..058ddd4a 100644
--- a/server/src/core/hover/hover.lua
+++ b/server/src/core/hover/hover.lua
@@ -17,6 +17,11 @@ local OriginTypes = {
}
local function findClass(value)
+ -- 检查是否有emmy
+ local emmy = value:getEmmy()
+ if emmy then
+ return emmy:getType()
+ end
-- 检查对象元表
local metaValue = value:getMetaTable()
if not metaValue then