From 264a3dbd41121ea975f934a6281a2b0781507fe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 22 Apr 2022 02:08:04 +0800 Subject: dont mark `redundant-parameter` as `Unnecessary` --- changelog.md | 1 + script/core/diagnostics/redundant-parameter.lua | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 4206c40a..e8fa5afb 100644 --- a/changelog.md +++ b/changelog.md @@ -23,6 +23,7 @@ local x = true local y = x--[[@as integer]] -- y is `integer` here ``` +* `CHG` diagnostic: no longer mark `redundant-parameter` as `Unnecessary` * `FIX` [#1051](https://github.com/sumneko/lua-language-server/issues/1051) * `FIX` [#1072](https://github.com/sumneko/lua-language-server/issues/1072) * `FIX` [#1077](https://github.com/sumneko/lua-language-server/issues/1077) diff --git a/script/core/diagnostics/redundant-parameter.lua b/script/core/diagnostics/redundant-parameter.lua index 4adf169e..564e0810 100644 --- a/script/core/diagnostics/redundant-parameter.lua +++ b/script/core/diagnostics/redundant-parameter.lua @@ -97,7 +97,6 @@ return function (uri, callback) callback { start = arg.start, finish = arg.finish, - tags = { define.DiagnosticTag.Unnecessary }, message = lang.script('DIAG_OVER_MAX_ARGS', funcArgs, callArgs) } end -- cgit v1.2.3