summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
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 55ae809a..f1aea66c 100644
--- a/script/core/hint.lua
+++ b/script/core/hint.lua
@@ -33,6 +33,9 @@ local function typeHint(uri, edits, start, finish)
return
end
end
+ if source.value and guide.isLiteral(source.value) then
+ return
+ end
local infer = vm.getInferType(source, 0)
if infer == 'any'
or infer == 'nil' then