diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-12-02 20:31:50 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-12-02 20:31:50 +0800 |
commit | 8f5946edf67ab5de910ac1955337f8588be24406 (patch) | |
tree | aa31cef9c47d726e4d622edc574fbee2f1fd0b74 /script/core/hover/table.lua | |
parent | 830be2cab0d5e45a32606bb33eba216c72a9ca66 (diff) | |
download | lua-language-server-8f5946edf67ab5de910ac1955337f8588be24406.zip |
getFieldFast check doc.field
Diffstat (limited to 'script/core/hover/table.lua')
-rw-r--r-- | script/core/hover/table.lua | 3 |
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) |