diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-19 14:30:22 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-19 14:30:22 +0800 |
commit | 7ca5c199bb4689528107e4f71382bc8baf71cba7 (patch) | |
tree | 713fe0c36d0c607d18a97915da770fce0d299559 /script-beta/core/hover/label.lua | |
parent | 936eb653a925c9d08ea9e800385cdf2d8bc65a5d (diff) | |
download | lua-language-server-7ca5c199bb4689528107e4f71382bc8baf71cba7.zip |
doc.array 的特殊推断
Diffstat (limited to 'script-beta/core/hover/label.lua')
-rw-r--r-- | script-beta/core/hover/label.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script-beta/core/hover/label.lua b/script-beta/core/hover/label.lua index 24779c41..29db67fa 100644 --- a/script-beta/core/hover/label.lua +++ b/script-beta/core/hover/label.lua @@ -48,7 +48,7 @@ local function asValue(source, title) local class = vm.getClass(source, 'deep') local literal = vm.getInferLiteral(source, 'deep') local cont - if type ~= 'string' then + if type ~= 'string' and not type:find('%[%]$') then if #vm.getFields(source, 'deep') > 0 or vm.hasInferType(source, 'table', 'deep') then cont = buildTable(source) |