diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-03-12 15:48:23 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-03-12 15:48:23 +0800 |
commit | 629c630ff23fd4d4eea498ba2e0984f0751e3a17 (patch) | |
tree | 674c996497f99e071cfe1ba9e86f200fc8b3928c /server/src/core/diagnostics.lua | |
parent | 632f171ef0b7f4a6fc6d9c789430a7026335b03f (diff) | |
download | lua-language-server-629c630ff23fd4d4eea498ba2e0984f0751e3a17.zip |
未使用的局部变量降低一个等级
Diffstat (limited to 'server/src/core/diagnostics.lua')
-rw-r--r-- | server/src/core/diagnostics.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/core/diagnostics.lua b/server/src/core/diagnostics.lua index 571e083b..848a9fb7 100644 --- a/server/src/core/diagnostics.lua +++ b/server/src/core/diagnostics.lua @@ -249,7 +249,7 @@ return function (vm, lines, uri) -- 未使用的局部变量 session:doDiagnostics(session.searchUnusedLocals, 'unused-local', function (key) return { - level = DiagnosticSeverity.Information, + level = DiagnosticSeverity.Hint, message = lang.script('DIAG_UNUSED_LOCAL', key), } end) |