diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-01-14 10:19:27 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-01-14 10:19:27 +0800 |
commit | be9213602268e735a074f114f99afccf100e85b2 (patch) | |
tree | 714d6f147e09cdc7d40631c708ea7b492e054b42 /server | |
parent | 583d14b62584608df641859578fab3bbd830c205 (diff) | |
download | lua-language-server-be9213602268e735a074f114f99afccf100e85b2.zip |
警告降低一个等级
Diffstat (limited to 'server')
-rw-r--r-- | server/src/core/diagnostics.lua | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/server/src/core/diagnostics.lua b/server/src/core/diagnostics.lua index a8d38448..0ea08c02 100644 --- a/server/src/core/diagnostics.lua +++ b/server/src/core/diagnostics.lua @@ -213,7 +213,7 @@ return function (vm, lines, uri) code = 'unused-local', start = start, finish = finish, - level = DiagnosticSeverity.Information, + level = DiagnosticSeverity.Hint, message = lang.script('DIAG_UNUSED_LOCAL', key), } end) @@ -225,7 +225,7 @@ return function (vm, lines, uri) code = 'undefined-global', start = start, finish = finish, - level = DiagnosticSeverity.Warning, + level = DiagnosticSeverity.Information, message = lang.script('DIAG_UNDEFINED_GLOBAL', key), } end) @@ -237,7 +237,7 @@ return function (vm, lines, uri) code = 'unused-label', start = start, finish = finish, - level =DiagnosticSeverity.Information, + level =DiagnosticSeverity.Hint, message = lang.script('DIAG_UNUSED_LABEL', key) } end) @@ -249,7 +249,7 @@ return function (vm, lines, uri) code = 'trailing-space', start = start, finish = finish, - level = DiagnosticSeverity.Information, + level = DiagnosticSeverity.Hint, message = message, } end) @@ -261,7 +261,7 @@ return function (vm, lines, uri) code = 'redefined-local', start = start, finish = finish, - level = DiagnosticSeverity.Information, + level = DiagnosticSeverity.Hint, message = lang.script('DIAG_REDEFINED_LOCAL', key), related = related, } @@ -274,7 +274,7 @@ return function (vm, lines, uri) code = 'newline-call', start = start, finish = finish, - level = DiagnosticSeverity.Information, + level = DiagnosticSeverity.Hint, message = lang.script.DIAG_PREVIOUS_CALL, } end) @@ -286,7 +286,7 @@ return function (vm, lines, uri) code = 'remainder-parameters', start = start, finish = finish, - level = DiagnosticSeverity.Warning, + level = DiagnosticSeverity.Information, message = lang.script('DIAG_OVER_MAX_ARGS', max, passed), } end) |