diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-09-13 18:22:25 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-09-13 18:22:25 +0800 |
commit | 0354b01b082384279945c6ef02be8f297b3e9919 (patch) | |
tree | dc978663da73550efe2bcb861a7906def3819e7a /test-beta/crossfile/completion.lua | |
parent | 426b30ed25c597554169474ff26543b8ac500652 (diff) | |
download | lua-language-server-0354b01b082384279945c6ef02be8f297b3e9919.zip |
自动完成require路径
Diffstat (limited to 'test-beta/crossfile/completion.lua')
-rw-r--r-- | test-beta/crossfile/completion.lua | 13 |
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, }, } |