summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-11-01 15:30:14 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-11-01 15:30:14 +0800
commit74e8cdc64719198018a565f438fa1ab66bfc71f5 (patch)
tree4265da1e0f839c339d69f0872fb6da16483b4f4f /test
parentf050b38fd69bd1c90b99b536f89f8036c9f4fc3a (diff)
downloadlua-language-server-74e8cdc64719198018a565f438fa1ab66bfc71f5.zip
find reference respect `includeDeclaration`
Diffstat (limited to 'test')
-rw-r--r--test/crossfile/references.lua2
-rw-r--r--test/references/init.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/crossfile/references.lua b/test/crossfile/references.lua
index 1a9f2508..22b13f42 100644
--- a/test/crossfile/references.lua
+++ b/test/crossfile/references.lua
@@ -83,7 +83,7 @@ function TEST(datas)
end
local sourcePos = (sourceList[1][1] + sourceList[1][2]) // 2
- local positions = core(sourceUri, sourcePos)
+ local positions = core(sourceUri, sourcePos, true)
if positions then
local result = {}
for i, position in ipairs(positions) do
diff --git a/test/references/init.lua b/test/references/init.lua
index eee0ac61..3ecc46bd 100644
--- a/test/references/init.lua
+++ b/test/references/init.lua
@@ -25,7 +25,7 @@ function TEST(script)
local input = catched['?'] + catched['~']
local expect = catched['!'] + catched['~']
- local results = core(TESTURI, input[1][1])
+ local results = core(TESTURI, input[1][1], true)
if results then
local positions = {}
for i, result in ipairs(results) do