summaryrefslogtreecommitdiff
path: root/script/core/hint.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/hint.lua')
-rw-r--r--script/core/hint.lua6
1 files changed, 1 insertions, 5 deletions
diff --git a/script/core/hint.lua b/script/core/hint.lua
index f1aea66c..f592bd77 100644
--- a/script/core/hint.lua
+++ b/script/core/hint.lua
@@ -20,8 +20,7 @@ local function typeHint(uri, edits, start, finish)
if source[1] == '_' then
return
end
- -- ζŽ’ι™€ζŽ‰ xx = function 与 xx = {}
- if source.value and (source.value.type == 'function' or source.value.type == 'table') then
+ if source.value and guide.isLiteral(source.value) then
return
end
if source.parent.type == 'funcargs' then
@@ -33,9 +32,6 @@ 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