summaryrefslogtreecommitdiff
path: root/test/crossfile
diff options
context:
space:
mode:
Diffstat (limited to 'test/crossfile')
-rw-r--r--test/crossfile/completion.lua17
1 files changed, 17 insertions, 0 deletions
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,
+}