diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-01-25 11:04:18 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-01-25 11:04:18 +0800 |
commit | 2a7088c27bd89398f2fd68aac339470811bffdaa (patch) | |
tree | aedc86e2ecd2536d9c93989b960410fc36c29343 /server | |
parent | 21e3a0f6e980293a72c6ba9d70b408d6dc6a43ff (diff) | |
download | lua-language-server-2a7088c27bd89398f2fd68aac339470811bffdaa.zip |
调整一些诊断等级
Diffstat (limited to 'server')
-rw-r--r-- | server/src/core/diagnostics.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/core/diagnostics.lua b/server/src/core/diagnostics.lua index 64852f03..3cfe4d55 100644 --- a/server/src/core/diagnostics.lua +++ b/server/src/core/diagnostics.lua @@ -260,14 +260,14 @@ return function (vm, lines, uri) -- 未使用的Label session:doDiagnostics('searchUnusedLabel', 'unused-label', function (key) return { - level =DiagnosticSeverity.Information, + level =DiagnosticSeverity.Hint, message = lang.script('DIAG_UNUSED_LABEL', key) } end) -- 只有空格与制表符的行,以及后置空格 session:doDiagnostics('searchSpaces', 'trailing-space', function (message) return { - level = DiagnosticSeverity.Information, + level = DiagnosticSeverity.Hint, message = message, } end) @@ -289,7 +289,7 @@ return function (vm, lines, uri) -- 调用函数时的参数数量是否超过函数的接收数量 session:doDiagnostics('searchRedundantParameters', 'remainder-parameters', function (max, passed) return { - level = DiagnosticSeverity.Warning, + level = DiagnosticSeverity.Information, message = lang.script('DIAG_OVER_MAX_ARGS', max, passed), } end) |