summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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