diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-26 13:22:35 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-26 13:22:35 +0800 |
commit | 1e914171e328c90237b98560cae49f6e386c01cf (patch) | |
tree | 515162ef88473805bd88e2ee018ea49798c331b4 /server/test/crossfile/definition.lua | |
parent | 097e9c06c9a78d3ae845a7eec694a2dbe99161b0 (diff) | |
download | lua-language-server-1e914171e328c90237b98560cae49f6e386c01cf.zip |
整理代码
Diffstat (limited to 'server/test/crossfile/definition.lua')
-rw-r--r-- | server/test/crossfile/definition.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/test/crossfile/definition.lua b/server/test/crossfile/definition.lua index 230b9ddf..dfc91c31 100644 --- a/server/test/crossfile/definition.lua +++ b/server/test/crossfile/definition.lua @@ -48,7 +48,8 @@ function TEST(data) local sourceVM = lsp:getVM(sourceUri) assert(sourceVM) local sourcePos = (sourceList[1][1] + sourceList[1][2]) // 2 - local positions = matcher.definition(sourceVM, sourcePos) + local result = matcher.findResult(sourceVM, sourcePos) + local positions = matcher.definition(sourceVM, result) assert(positions and positions[1]) local start, finish, valueUri = positions[1][1], positions[1][2], positions[1][3] assert(valueUri == targetUri) |