summaryrefslogtreecommitdiff
path: root/server-beta/test/crossfile/definition.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-10-22 19:09:12 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-10-22 19:09:12 +0800
commit1f0a645cddeae4caba21c655651d97b5313d2302 (patch)
treeb540e020d8cec343905857ee09af77c6545c65a3 /server-beta/test/crossfile/definition.lua
parente92ea4b611e8291a2b6ae6904147917179140fae (diff)
downloadlua-language-server-1f0a645cddeae4caba21c655651d97b5313d2302.zip
改成用uri来获取定义
Diffstat (limited to 'server-beta/test/crossfile/definition.lua')
-rw-r--r--server-beta/test/crossfile/definition.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/server-beta/test/crossfile/definition.lua b/server-beta/test/crossfile/definition.lua
index 74e0333c..cf54f30e 100644
--- a/server-beta/test/crossfile/definition.lua
+++ b/server-beta/test/crossfile/definition.lua
@@ -76,10 +76,8 @@ function TEST(datas)
files.setText(uri, data.content)
end
- local sourceAst = files.getAst(sourceUri)
- assert(sourceAst)
local sourcePos = (sourceList[1][1] + sourceList[1][2]) // 2
- local positions = core(sourceAst, sourcePos)
+ local positions = core(sourceUri, sourcePos)
if positions then
local result = {}
for i, position in ipairs(positions) do