summaryrefslogtreecommitdiff
path: root/script/core/hover/table.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-12-02 20:31:50 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-12-02 20:31:50 +0800
commit8f5946edf67ab5de910ac1955337f8588be24406 (patch)
treeaa31cef9c47d726e4d622edc574fbee2f1fd0b74 /script/core/hover/table.lua
parent830be2cab0d5e45a32606bb33eba216c72a9ca66 (diff)
downloadlua-language-server-8f5946edf67ab5de910ac1955337f8588be24406.zip
getFieldFast check doc.field
Diffstat (limited to 'script/core/hover/table.lua')
-rw-r--r--script/core/hover/table.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/core/hover/table.lua b/script/core/hover/table.lua
index 9e850c3e..b43151ea 100644
--- a/script/core/hover/table.lua
+++ b/script/core/hover/table.lua
@@ -74,6 +74,9 @@ local function getFieldFast(src)
end
return value.type, util.viewLiteral(literal)
end
+ if value.type == 'doc.field' then
+ return vm.getInferType(value)
+ end
end
local function getField(src, timeUp, mark, key)