diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-23 20:51:21 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-23 20:51:21 +0800 |
commit | 2738409e2d6d54253f48140533980f433d02efa3 (patch) | |
tree | d7467a42ca0d6106468df520068401bf1331aea1 /script/proto | |
parent | 70beb5893cc6d9d70fc85460b8aa3fdbd0a88a63 (diff) | |
download | lua-language-server-2738409e2d6d54253f48140533980f433d02efa3.zip |
update config
Diffstat (limited to 'script/proto')
-rw-r--r-- | script/proto/define.lua | 4 | ||||
-rw-r--r-- | script/proto/diagnostic.lua | 16 |
2 files changed, 20 insertions, 0 deletions
diff --git a/script/proto/define.lua b/script/proto/define.lua index fa834cbf..93907847 100644 --- a/script/proto/define.lua +++ b/script/proto/define.lua @@ -16,6 +16,10 @@ m.DiagnosticDefaultSeverity = diag.getDefaultSeverity() --- 诊断类型与需要的文件状态(可以控制只分析打开的文件、还是所有文件) m.DiagnosticDefaultNeededFileStatus = diag.getDefaultStatus() +m.DiagnosticDefaultGroupSeverity = diag.getGroupSeverity() + +m.DiagnosticDefaultGroupFileStatus = diag.getGroupStatus() + --- 诊断报告标签 m.DiagnosticTag = { Unnecessary = 1, diff --git a/script/proto/diagnostic.lua b/script/proto/diagnostic.lua index 09c0596d..cba6a493 100644 --- a/script/proto/diagnostic.lua +++ b/script/proto/diagnostic.lua @@ -201,4 +201,20 @@ function m.getDefaultStatus() return status end +function m.getGroupSeverity() + local group = {} + for name in pairs(m.diagnosticGroups) do + group[name] = 'Fallback' + end + return group +end + +function m.getGroupStatus() + local group = {} + for name in pairs(m.diagnosticGroups) do + group[name] = 'Fallback' + end + return group +end + return m |