summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-22 02:08:04 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-22 02:08:04 +0800
commit264a3dbd41121ea975f934a6281a2b0781507fe0 (patch)
tree481446843d2ed1e361018ea8b36ce83801ccaaf2
parent4bb1dadaf5ce86b3fda8e175e217a0016c361e5e (diff)
downloadlua-language-server-264a3dbd41121ea975f934a6281a2b0781507fe0.zip
dont mark `redundant-parameter` as `Unnecessary`
-rw-r--r--changelog.md1
-rw-r--r--script/core/diagnostics/redundant-parameter.lua1
2 files changed, 1 insertions, 1 deletions
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