summaryrefslogtreecommitdiff
path: root/script/proto/define.lua
diff options
context:
space:
mode:
authorAlexCai2019 <89138532+AlexCai2019@users.noreply.github.com>2022-05-08 01:43:28 +0800
committerGitHub <noreply@github.com>2022-05-08 01:43:28 +0800
commit0fd83c4ca9f82a02becab6c304a8a7de75098507 (patch)
treebe9790d9d4823fe728c5b36e94093fe5f42b7725 /script/proto/define.lua
parent89203efad8c9b5513e05ca4d5696107924865b10 (diff)
parent67b4c574849d1667e0ecb39c51aeed8e30b43056 (diff)
downloadlua-language-server-0fd83c4ca9f82a02becab6c304a8a7de75098507.zip
Merge branch 'sumneko:master' into master
Diffstat (limited to 'script/proto/define.lua')
-rw-r--r--script/proto/define.lua18
1 files changed, 11 insertions, 7 deletions
diff --git a/script/proto/define.lua b/script/proto/define.lua
index 389cdf88..fb60c56c 100644
--- a/script/proto/define.lua
+++ b/script/proto/define.lua
@@ -9,10 +9,10 @@ m.DiagnosticSeverity = {
}
---@alias DiagnosticDefaultSeverity
----| '"Hint"'
----| '"Information"'
----| '"Warning"'
----| '"Error"'
+---| 'Hint'
+---| 'Information'
+---| 'Warning'
+---| 'Error'
--- 诊断类型与默认等级
---@type table<string, DiagnosticDefaultSeverity>
@@ -29,6 +29,7 @@ m.DiagnosticDefaultSeverity = {
['newline-call'] = 'Information',
['newfield-call'] = 'Warning',
['redundant-parameter'] = 'Warning',
+ ['missing-parameter'] = 'Warning',
['redundant-return'] = 'Warning',
['ambiguity-1'] = 'Warning',
['lowercase-global'] = 'Information',
@@ -47,6 +48,7 @@ m.DiagnosticDefaultSeverity = {
['await-in-sync'] = 'Warning',
['not-yieldable'] = 'Warning',
['discard-returns'] = 'Warning',
+ ['need-check-nil'] = 'Warning',
['type-check'] = 'Warning',
['duplicate-doc-alias'] = 'Warning',
@@ -63,9 +65,9 @@ m.DiagnosticDefaultSeverity = {
}
---@alias DiagnosticDefaultNeededFileStatus
----| '"Any"'
----| '"Opened"'
----| '"None"'
+---| 'Any'
+---| 'Opened'
+---| 'None'
-- 文件状态
m.FileStatus = {
@@ -88,6 +90,7 @@ m.DiagnosticDefaultNeededFileStatus = {
['newline-call'] = 'Any',
['newfield-call'] = 'Any',
['redundant-parameter'] = 'Opened',
+ ['missing-parameter'] = 'Opened',
['redundant-return'] = 'Opened',
['ambiguity-1'] = 'Any',
['lowercase-global'] = 'Any',
@@ -106,6 +109,7 @@ m.DiagnosticDefaultNeededFileStatus = {
['await-in-sync'] = 'None',
['not-yieldable'] = 'None',
['discard-returns'] = 'Opened',
+ ['need-check-nil'] = 'Opened',
['type-check'] = 'None',
['duplicate-doc-alias'] = 'Any',