summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-02-01 11:22:08 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-02-01 11:22:08 +0800
commit077059a706cb082cf9ba747e80a0e45dd5b1cafb (patch)
treed8718bdfe78108e71cd274d1aae7616897925351 /script
parenta51dfc312937a98fdf715716faba83591ad90971 (diff)
downloadlua-language-server-077059a706cb082cf9ba747e80a0e45dd5b1cafb.zip
no any
Diffstat (limited to 'script')
-rw-r--r--script/core/hint.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/core/hint.lua b/script/core/hint.lua
index d4ace5b7..008349ad 100644
--- a/script/core/hint.lua
+++ b/script/core/hint.lua
@@ -34,6 +34,9 @@ local function typeHint(uri, edits, start, finish)
end
end
local infer = vm.getInferType(source, 0)
+ if infer == 'any' then
+ return
+ end
local src = source
if source.type == 'tablefield' then
src = source.field