diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-09 16:32:05 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-09 16:32:05 +0800 |
commit | 916b8563cc327af32a5c3dccfdb5434711d83377 (patch) | |
tree | d21c0503425c168ae019e9e358cc278715639eca /script/core/diagnostics/close-non-object.lua | |
parent | 3827d18e5b84d5372334ee8151362f935edf8ac4 (diff) | |
download | lua-language-server-916b8563cc327af32a5c3dccfdb5434711d83377.zip |
view infer must specify uri
Diffstat (limited to 'script/core/diagnostics/close-non-object.lua')
-rw-r--r-- | script/core/diagnostics/close-non-object.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/script/core/diagnostics/close-non-object.lua b/script/core/diagnostics/close-non-object.lua index c97014fa..d07aaebe 100644 --- a/script/core/diagnostics/close-non-object.lua +++ b/script/core/diagnostics/close-non-object.lua @@ -25,10 +25,10 @@ return function (uri, callback) return end local infer = vm.getInfer(source.value) - if not infer:hasClass() - and not infer:hasType 'nil' - and not infer:hasType 'table' - and infer:view('any', uri) ~= 'any' then + if not infer:hasClass(uri) + and not infer:hasType(uri, 'nil') + and not infer:hasType(uri, 'table') + and infer:view(uri, 'any') ~= 'any' then callback { start = source.value.start, finish = source.value.finish, |