diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-23 00:42:10 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-23 00:42:10 +0800 |
commit | ec1f746a71dfb981f093bf00322db75d559fd6b6 (patch) | |
tree | 71730d2de455bf7cd8a9481a554a56cddf47f341 /script/core/diagnostics/missing-parameter.lua | |
parent | 6e00db5b51646ad91c5ee5598897cad7f8d65915 (diff) | |
download | lua-language-server-ec1f746a71dfb981f093bf00322db75d559fd6b6.zip |
fix optional parameters
Diffstat (limited to 'script/core/diagnostics/missing-parameter.lua')
-rw-r--r-- | script/core/diagnostics/missing-parameter.lua | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/script/core/diagnostics/missing-parameter.lua b/script/core/diagnostics/missing-parameter.lua index 34cbdab6..e2cf4982 100644 --- a/script/core/diagnostics/missing-parameter.lua +++ b/script/core/diagnostics/missing-parameter.lua @@ -69,16 +69,7 @@ return function (uri, callback) callback { start = source.start, finish = source.finish, + message = lang.script('DIAG_MISS_ARGS', funcArgs, callArgs), } - for i = #source.args - delta + 1, #source.args do - local arg = source.args[i] - if arg then - callback { - start = arg.start, - finish = arg.finish, - message = lang.script('DIAG_MISS_ARGS', funcArgs, callArgs) - } - end - end end) end |