summaryrefslogtreecommitdiff
path: root/server/src/method/textDocument/references.lua
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-22 17:47:01 +0800
committersumneko <sumneko@hotmail.com>2019-04-22 17:47:01 +0800
commit57eefd5142fab69c1e575917945fd3aded42f5ca (patch)
tree1b1b0f0ed1503bf3b68d800318f486bc0523210d /server/src/method/textDocument/references.lua
parentea693e88c314ed118dab0121524453b1ba3bea90 (diff)
downloadlua-language-server-57eefd5142fab69c1e575917945fd3aded42f5ca.zip
查找引用也通过转到定义实现
Diffstat (limited to 'server/src/method/textDocument/references.lua')
-rw-r--r--server/src/method/textDocument/references.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/method/textDocument/references.lua b/server/src/method/textDocument/references.lua
index 397b1491..4a876121 100644
--- a/server/src/method/textDocument/references.lua
+++ b/server/src/method/textDocument/references.lua
@@ -4,7 +4,7 @@ local LastTask
local function findReferences(lsp, uri, position, declarat)
local vm = lsp:getVM(uri)
- local positions, isGlobal = core.references(vm, position, declarat)
+ local positions, isGlobal = core.references(vm, position, 'reference')
if not positions then
return nil
end