diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-01-14 11:03:25 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-01-14 11:03:25 +0800 |
commit | 4f0df1279ebddc9318bf63b778848c5d06965e93 (patch) | |
tree | 6ec7b158b16305b3b7ffb0f182902a5950b46c75 | |
parent | be9213602268e735a074f114f99afccf100e85b2 (diff) | |
download | lua-language-server-4f0df1279ebddc9318bf63b778848c5d06965e93.zip |
警告等级还是改回去吧,效果不太好
-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 0ea08c02..a8d38448 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.Hint, + level = DiagnosticSeverity.Information, 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.Information, + level = DiagnosticSeverity.Warning, 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.Hint, + level =DiagnosticSeverity.Information, 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.Hint, + level = DiagnosticSeverity.Information, message = message, } end) @@ -261,7 +261,7 @@ return function (vm, lines, uri) code = 'redefined-local', start = start, finish = finish, - level = DiagnosticSeverity.Hint, + level = DiagnosticSeverity.Information, 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.Hint, + level = DiagnosticSeverity.Information, 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.Information, + level = DiagnosticSeverity.Warning, message = lang.script('DIAG_OVER_MAX_ARGS', max, passed), } end) |