diff options
author | uhziel <uhziel@gmail.com> | 2020-12-09 17:20:58 +0800 |
---|---|---|
committer | uhziel <uhziel@gmail.com> | 2020-12-09 17:20:58 +0800 |
commit | cdb0368c12640c3fb6faa00eabeff7572f677061 (patch) | |
tree | b983607b0576014bf627993e292fba687d88c7ee /script/proto | |
parent | 65b56557d79637135ce59ff6ceda44c35d8518e4 (diff) | |
download | lua-language-server-cdb0368c12640c3fb6faa00eabeff7572f677061.zip |
添加检测"未定义的 field"
Diffstat (limited to 'script/proto')
-rw-r--r-- | script/proto/define.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/script/proto/define.lua b/script/proto/define.lua index 082e382a..6ddcd3a7 100644 --- a/script/proto/define.lua +++ b/script/proto/define.lua @@ -140,6 +140,7 @@ m.DiagnosticDefaultSeverity = { ['unused-local'] = 'Hint', ['unused-function'] = 'Hint', ['undefined-global'] = 'Warning', + ['undefined-field'] = 'Warning', ['global-in-nil-env'] = 'Warning', ['unused-label'] = 'Hint', ['unused-vararg'] = 'Hint', |