From 74e8cdc64719198018a565f438fa1ab66bfc71f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 1 Nov 2022 15:30:14 +0800 Subject: find reference respect `includeDeclaration` --- test/crossfile/references.lua | 2 +- test/references/init.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'test') 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 -- cgit v1.2.3