diff options
Diffstat (limited to 'server/test/crossfile')
-rw-r--r-- | server/test/crossfile/definition.lua | 3 | ||||
-rw-r--r-- | server/test/crossfile/references.lua | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/server/test/crossfile/definition.lua b/server/test/crossfile/definition.lua index 4e3a00ef..f49530ea 100644 --- a/server/test/crossfile/definition.lua +++ b/server/test/crossfile/definition.lua @@ -89,8 +89,7 @@ function TEST(datas) local sourceVM = lsp:getVM(sourceUri) assert(sourceVM) local sourcePos = (sourceList[1][1] + sourceList[1][2]) // 2 - local source = core.findSource(sourceVM, sourcePos) - local positions = core.definition(sourceVM, source, lsp) + local positions = core.definition(sourceVM, sourcePos, 'definition', lsp) if positions then assert(founded(targetList, positions)) else diff --git a/server/test/crossfile/references.lua b/server/test/crossfile/references.lua index 5f29eb25..07bdf185 100644 --- a/server/test/crossfile/references.lua +++ b/server/test/crossfile/references.lua @@ -109,7 +109,7 @@ function TEST(data) compileAll(lsp) assert(vm) - local result = core.references(vm, pos, true) + local result = core.references(vm, pos, 'reference') if expect then assert(result) assert(founded(expect, result)) |