summaryrefslogtreecommitdiff
path: root/server/src/method/textDocument/rename.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-05 18:15:36 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-05 18:15:36 +0800
commit8c771238ca3df91441d538e587a68ece23ecc02f (patch)
tree03a4175d6a1a7f0c2d4e5cb84ade1c59f23981fe /server/src/method/textDocument/rename.lua
parenta8fd968dd81edb45d13f527cebd405d5abbbfd80 (diff)
downloadlua-language-server-8c771238ca3df91441d538e587a68ece23ecc02f.zip
改名做一些检查
Diffstat (limited to 'server/src/method/textDocument/rename.lua')
-rw-r--r--server/src/method/textDocument/rename.lua2
1 files changed, 1 insertions, 1 deletions
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