From 8c771238ca3df91441d538e587a68ece23ecc02f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 5 Dec 2018 18:15:36 +0800 Subject: =?UTF-8?q?=E6=94=B9=E5=90=8D=E5=81=9A=E4=B8=80=E4=BA=9B=E6=A3=80?= =?UTF-8?q?=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/method/textDocument/rename.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/src/method') diff --git a/server/src/method/textDocument/rename.lua b/server/src/method/textDocument/rename.lua index ac1e8fc6..1340226b 100644 --- a/server/src/method/textDocument/rename.lua +++ b/server/src/method/textDocument/rename.lua @@ -10,7 +10,7 @@ return function (lsp, params) end -- lua是从1开始的,因此都要+1 local position = lines:position(params.position.line + 1, params.position.character + 1, 'utf8') - local positions = matcher.references(results, position, true) + local positions = matcher.rename(results, position) if not positions then return {} end -- cgit v1.2.3