diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-12-23 15:30:41 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-23 15:30:41 +0800 |
commit | 97f83b891d3f85bf8367e4a30467383e393e54a1 (patch) | |
tree | 6a78751fdd36ca4ca01942817d06f0f76ba15064 /script | |
parent | 5b9bf7b4a706ceedf70c4da59d5f8b62f053281a (diff) | |
parent | 2ab172bbd6e0f2eeed3388bd69947d3840e5ff15 (diff) | |
download | lua-language-server-97f83b891d3f85bf8367e4a30467383e393e54a1.zip |
Merge pull request #322 from uhziel/undefined-field-donot-check-table
undefined-field不要检测类型为table的,会出现很多误报
Diffstat (limited to 'script')
-rw-r--r-- | script/core/diagnostics/undefined-field.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/diagnostics/undefined-field.lua b/script/core/diagnostics/undefined-field.lua index c5c64b4d..bfb12e34 100644 --- a/script/core/diagnostics/undefined-field.lua +++ b/script/core/diagnostics/undefined-field.lua @@ -29,7 +29,7 @@ return function (uri, callback) local allDocClass = {} for i = 1, #infers do local infer = infers[i] - if infer.type ~= '_G' and infer.type ~= 'any' then + if infer.type ~= '_G' and infer.type ~= 'any' and infer.type ~= 'table' then local inferSource = infer.source if inferSource.type == 'doc.class' then addTo(allDocClass, inferSource) |