From b22099c12e001bf81a6d1cf47655e6e815d04391 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Sun, 13 Sep 2020 19:23:09 +0800 Subject: =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=87=AA=E5=8A=A8=E5=AE=8C=E6=88=90?= =?UTF-8?q?=20dofile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test-beta/crossfile/completion.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'test-beta/crossfile/completion.lua') diff --git a/test-beta/crossfile/completion.lua b/test-beta/crossfile/completion.lua index 6801abb7..0e344a5b 100644 --- a/test-beta/crossfile/completion.lua +++ b/test-beta/crossfile/completion.lua @@ -521,3 +521,24 @@ TEST { }, } } + +TEST { + { + path = [[abc/init.lua]], + content = '' + }, + { + path = 'main.lua', + content = [[ + dofile 'ab$' + ]], + main = true, + }, + completion = { + { + label = [[abc\init.lua]], + kind = CompletionItemKind.Reference, + textEdit = EXISTS, + }, + } +} -- cgit v1.2.3