summaryrefslogtreecommitdiff
path: root/server/test/crossfile
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-02-26 15:29:10 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-02-26 15:29:10 +0800
commit94a9de07f5042e18927ce996f151c846fca432f9 (patch)
tree2152f984a509242dd0ad2dd122d57bf518ab26f3 /server/test/crossfile
parentae9734ee608897b48c2f1ef730d30cc168377e31 (diff)
downloadlua-language-server-94a9de07f5042e18927ce996f151c846fca432f9.zip
暂存
Diffstat (limited to 'server/test/crossfile')
-rw-r--r--server/test/crossfile/definition.lua4
-rw-r--r--server/test/crossfile/hover.lua2
2 files changed, 3 insertions, 3 deletions
diff --git a/server/test/crossfile/definition.lua b/server/test/crossfile/definition.lua
index 458154bc..3fd8d3fe 100644
--- a/server/test/crossfile/definition.lua
+++ b/server/test/crossfile/definition.lua
@@ -63,8 +63,8 @@ function TEST(datas)
local sourceVM = lsp:getVM(sourceUri)
assert(sourceVM)
local sourcePos = (sourceList[1][1] + sourceList[1][2]) // 2
- local result = core.findResult(sourceVM, sourcePos)
- local positions = core.definition(sourceVM, result, lsp)
+ local source = core.findSource(sourceVM, sourcePos)
+ local positions = core.definition(sourceVM, source, lsp)
assert(positions and positions[1])
local start, finish, valueUri = positions[1][1], positions[1][2], positions[1][3]
assert(valueUri == targetUri)
diff --git a/server/test/crossfile/hover.lua b/server/test/crossfile/hover.lua
index a4479280..03f3c6d5 100644
--- a/server/test/crossfile/hover.lua
+++ b/server/test/crossfile/hover.lua
@@ -72,7 +72,7 @@ function TEST(data)
local sourceVM = lsp:loadVM(sourceUri)
assert(sourceVM)
local sourcePos = (sourceList[1][1] + sourceList[1][2]) // 2
- local result, source = core.findResult(sourceVM, sourcePos)
+ local result, source = core.findSource(sourceVM, sourcePos)
local hover = core.hover(result, source, lsp)
assert(hover)
if data.hover.description then