From 5059d67522a70b45e504c60a433116460318ab29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 7 Dec 2020 11:40:31 +0800 Subject: pass test --- test/code_action/init.lua | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) (limited to 'test/code_action/init.lua') 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(, 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(, 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(, 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, }, -- cgit v1.2.3