summaryrefslogtreecommitdiff
path: root/script/proto
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-09-28 10:49:19 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-09-28 10:49:19 +0800
commit584ecf336224c65e44e8b375919d676de5377f26 (patch)
tree7540fd8130edfab4280a06a785e377d82ec279a2 /script/proto
parent0805d50df822422bcee2b5bf6bfe9067f1a9063a (diff)
downloadlua-language-server-584ecf336224c65e44e8b375919d676de5377f26.zip
disable `type-check` by default
Diffstat (limited to 'script/proto')
-rw-r--r--script/proto/define.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/proto/define.lua b/script/proto/define.lua
index f0dece36..825e757c 100644
--- a/script/proto/define.lua
+++ b/script/proto/define.lua
@@ -17,7 +17,6 @@ m.DiagnosticSeverity = {
--- 诊断类型与默认等级
---@type table<string, DiagnosticDefaultSeverity>
m.DiagnosticDefaultSeverity = {
- ['type-check'] = "Warning",
['unused-local'] = 'Hint',
['unused-function'] = 'Hint',
['undefined-global'] = 'Warning',
@@ -44,6 +43,7 @@ m.DiagnosticDefaultSeverity = {
['no-implicit-any'] = 'Information',
['deprecated'] = 'Warning',
['different-requires'] = 'Warning',
+ ['type-check'] = 'Warning',
['duplicate-doc-class'] = 'Warning',
['undefined-doc-class'] = 'Warning',
@@ -96,6 +96,7 @@ m.DiagnosticDefaultNeededFileStatus = {
['no-implicit-any'] = 'None',
['deprecated'] = 'Opened',
['different-requires'] = 'Any',
+ ['type-check'] = 'None',
['duplicate-doc-class'] = 'Any',
['undefined-doc-class'] = 'Any',