summaryrefslogtreecommitdiff
path: root/test/crossfile
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-08-09 17:47:56 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-08-09 17:47:56 +0800
commitacd37caafa2b4e9fa673327e54c5f010fa37641f (patch)
tree7e0ac2eaf7fc9bc5460e9ce1342639f5ace60bd6 /test/crossfile
parent2ecc421ba6ed49b4e2a640c424eb7581ccbc6ecf (diff)
downloadlua-language-server-acd37caafa2b4e9fa673327e54c5f010fa37641f.zip
`FIX` completion: can not find global fields
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,
+}