From 077059a706cb082cf9ba747e80a0e45dd5b1cafb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 1 Feb 2021 11:22:08 +0800 Subject: no any --- script/core/hint.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'script/core') 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 -- cgit v1.2.3