summaryrefslogtreecommitdiff
path: root/test/crossfile
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-10-11 11:16:27 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-10-11 11:16:27 +0800
commit8cdff13ef2cd6d5529821134997c517c3494a568 (patch)
treeaa567d128856c4ea616197b2b1a7420967336837 /test/crossfile
parent8f24287d7f1190a5fff5f85de3f403d84bebf79c (diff)
downloadlua-language-server-8cdff13ef2cd6d5529821134997c517c3494a568.zip
fix #713 `runtime.special` broken
Diffstat (limited to 'test/crossfile')
-rw-r--r--test/crossfile/completion.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/crossfile/completion.lua b/test/crossfile/completion.lua
index ae843d3b..455f0600 100644
--- a/test/crossfile/completion.lua
+++ b/test/crossfile/completion.lua
@@ -850,3 +850,16 @@ TEST {
},
completion = EXISTS
}
+
+config.prop('Lua.runtime.special', 'import', 'require')
+TEST {
+ { path = 'abcde.lua', content = '' },
+ {
+ path = 'main.lua',
+ main = true,
+ content = [[
+ import 'ab<??>'
+ ]]
+ },
+ completion = EXISTS
+}