diff options
Diffstat (limited to 'test/crossfile/completion.lua')
-rw-r--r-- | test/crossfile/completion.lua | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/crossfile/completion.lua b/test/crossfile/completion.lua index 927cad3c..d26398ca 100644 --- a/test/crossfile/completion.lua +++ b/test/crossfile/completion.lua @@ -302,6 +302,32 @@ TEST { } } +local originSeparator = config.get 'Lua.completion.requireSeparator' +config.set('Lua.completion.requireSeparator', '/') +TEST { + { + path = 'abc.lua', + content = '', + }, + { + path = 'abc/init.lua', + content = '', + }, + { + path = 'test.lua', + content = 'require "abc/i$"', + main = true, + }, + completion = { + { + label = 'abc/init', + kind = CompletionItemKind.Reference, + textEdit = EXISTS, + }, + } +} +config.set('Lua.completion.requireSeparator', originSeparator) + TEST { { path = 'core/core.lua', |