summaryrefslogtreecommitdiff
path: root/script/proto
diff options
context:
space:
mode:
authoruhziel <uhziel@gmail.com>2020-12-09 17:20:58 +0800
committeruhziel <uhziel@gmail.com>2020-12-09 17:20:58 +0800
commitcdb0368c12640c3fb6faa00eabeff7572f677061 (patch)
treeb983607b0576014bf627993e292fba687d88c7ee /script/proto
parent65b56557d79637135ce59ff6ceda44c35d8518e4 (diff)
downloadlua-language-server-cdb0368c12640c3fb6faa00eabeff7572f677061.zip
添加检测"未定义的 field"
Diffstat (limited to 'script/proto')
-rw-r--r--script/proto/define.lua1
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',