From 4f0df1279ebddc9318bf63b778848c5d06965e93 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 11:03:25 +0800 Subject: =?UTF-8?q?=E8=AD=A6=E5=91=8A=E7=AD=89=E7=BA=A7=E8=BF=98=E6=98=AF?= =?UTF-8?q?=E6=94=B9=E5=9B=9E=E5=8E=BB=E5=90=A7=EF=BC=8C=E6=95=88=E6=9E=9C?= =?UTF-8?q?=E4=B8=8D=E5=A4=AA=E5=A5=BD?= 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 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) -- cgit v1.2.3