From acd37caafa2b4e9fa673327e54c5f010fa37641f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 9 Aug 2021 17:47:56 +0800 Subject: `FIX` completion: can not find global fields --- test/crossfile/completion.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'test') diff --git a/test/crossfile/completion.lua b/test/crossfile/completion.lua index 3abc1de4..84d31544 100644 --- a/test/crossfile/completion.lua +++ b/test/crossfile/completion.lua @@ -767,3 +767,20 @@ function (a: any, b: any) Cared['detail'] = nil Cared['additionalTextEdits'] = nil end + +TEST { + { + path = 'a.lua', + content = [[ + A.B = 1 + ]] + }, + { + path = 'main.lua', + main = true, + content = [[ + A.$ + ]], + }, + completion = EXISTS, +} -- cgit v1.2.3