From be9213602268e735a074f114f99afccf100e85b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 14 Jan 2019 10:19:27 +0800 Subject: =?UTF-8?q?=E8=AD=A6=E5=91=8A=E9=99=8D=E4=BD=8E=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E7=AD=89=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/core/diagnostics.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'server') 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) -- cgit v1.2.3