diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-12-07 11:40:31 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-12-07 11:40:31 +0800 |
commit | 5059d67522a70b45e504c60a433116460318ab29 (patch) | |
tree | e23c2da4001a33da74e5df069fde1efccea86504 /test | |
parent | e8bb3d6a84ab54249347ada01740e1127147fc13 (diff) | |
download | lua-language-server-5059d67522a70b45e504c60a433116460318ab29.zip |
pass test
Diffstat (limited to 'test')
-rw-r--r-- | test/code_action/init.lua | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/test/code_action/init.lua b/test/code_action/init.lua index 1dde7fed..64c12c09 100644 --- a/test/code_action/init.lua +++ b/test/code_action/init.lua @@ -53,12 +53,18 @@ print(<?a?>, b, c) ]] { { - title = '将其改为 `print` 的第 2 个参数', + title = lang.script('ACTION_SWAP_PARAMS', { + node = 'print', + index = 2, + }), kind = 'refactor.rewrite', edit = EXISTS, }, { - title = '将其改为 `print` 的第 3 个参数', + title = lang.script('ACTION_SWAP_PARAMS', { + node = 'print', + index = 3, + }), kind = 'refactor.rewrite', edit = EXISTS, }, @@ -69,12 +75,18 @@ local function f(<?a?>, b, c) end ]] { { - title = '将其改为 `f` 的第 2 个参数', + title = lang.script('ACTION_SWAP_PARAMS', { + node = 'f', + index = 2, + }), kind = 'refactor.rewrite', edit = EXISTS, }, { - title = '将其改为 `f` 的第 3 个参数', + title = lang.script('ACTION_SWAP_PARAMS', { + node = 'f', + index = 3, + }), kind = 'refactor.rewrite', edit = EXISTS, }, @@ -85,12 +97,18 @@ return function(<?a?>, b, c) end ]] { { - title = '将其改为 `<匿名函数>` 的第 2 个参数', + title = lang.script('ACTION_SWAP_PARAMS', { + node = lang.script.SYMBOL_ANONYMOUS, + index = 2, + }), kind = 'refactor.rewrite', edit = EXISTS, }, { - title = '将其改为 `<匿名函数>` 的第 3 个参数', + title = lang.script('ACTION_SWAP_PARAMS', { + node = lang.script.SYMBOL_ANONYMOUS, + index = 3, + }), kind = 'refactor.rewrite', edit = EXISTS, }, |