diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-02-26 15:29:10 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-02-26 15:29:10 +0800 |
commit | 94a9de07f5042e18927ce996f151c846fca432f9 (patch) | |
tree | 2152f984a509242dd0ad2dd122d57bf518ab26f3 /server/test/crossfile | |
parent | ae9734ee608897b48c2f1ef730d30cc168377e31 (diff) | |
download | lua-language-server-94a9de07f5042e18927ce996f151c846fca432f9.zip |
暂存
Diffstat (limited to 'server/test/crossfile')
-rw-r--r-- | server/test/crossfile/definition.lua | 4 | ||||
-rw-r--r-- | server/test/crossfile/hover.lua | 2 |
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 |