diff options
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/hint.lua | 6 |
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 |