summaryrefslogtreecommitdiff
path: root/server/test/definition
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/test/definition
parentea693e88c314ed118dab0121524453b1ba3bea90 (diff)
downloadlua-language-server-57eefd5142fab69c1e575917945fd3aded42f5ca.zip
查找引用也通过转到定义实现
Diffstat (limited to 'server/test/definition')
-rw-r--r--server/test/definition/init.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/test/definition/init.lua b/server/test/definition/init.lua
index d699744a..cad120f7 100644
--- a/server/test/definition/init.lua
+++ b/server/test/definition/init.lua
@@ -45,8 +45,7 @@ function TEST(script)
local vm = buildVM(ast)
assert(vm)
- local source = core.findSource(vm, pos)
- local positions = core.definition(vm, source, nil)
+ local positions = core.definition(vm, pos, 'definition', nil)
if positions then
assert(founded(target, positions))
else