summaryrefslogtreecommitdiff
path: root/test-beta/crossfile/completion.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-09-13 18:22:25 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-09-13 18:22:25 +0800
commit0354b01b082384279945c6ef02be8f297b3e9919 (patch)
treedc978663da73550efe2bcb861a7906def3819e7a /test-beta/crossfile/completion.lua
parent426b30ed25c597554169474ff26543b8ac500652 (diff)
downloadlua-language-server-0354b01b082384279945c6ef02be8f297b3e9919.zip
自动完成require路径
Diffstat (limited to 'test-beta/crossfile/completion.lua')
-rw-r--r--test-beta/crossfile/completion.lua13
1 files changed, 10 insertions, 3 deletions
diff --git a/test-beta/crossfile/completion.lua b/test-beta/crossfile/completion.lua
index 8ac3ac48..b20f652c 100644
--- a/test-beta/crossfile/completion.lua
+++ b/test-beta/crossfile/completion.lua
@@ -126,21 +126,28 @@ TEST {
},
completion = {
{
+ label = 'aaa',
+ kind = CompletionItemKind.Reference,
+ textEdit = EXISTS,
+ },
+ {
label = 'abc',
kind = CompletionItemKind.Reference,
- documentation = 'abc.lua',
textEdit = EXISTS,
},
{
label = 'abc.aaa',
kind = CompletionItemKind.Reference,
- documentation = 'abc/aaa.lua',
textEdit = EXISTS,
},
{
label = 'abcde',
kind = CompletionItemKind.Reference,
- documentation = 'xxx/abcde.lua',
+ textEdit = EXISTS,
+ },
+ {
+ label = 'xxx.abcde',
+ kind = CompletionItemKind.Reference,
textEdit = EXISTS,
},
}