diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-01-07 09:29:54 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-01-07 09:29:54 +0800 |
commit | 01b0740d251a7fd62a64c1443ba969c95c55c3ab (patch) | |
tree | bfaede85e3a31dd9f5ed82d493bee26ae8d07166 /server/test/crossfile/completion.lua | |
parent | f440d6c1a75b4d6fefcc40cf35cca74e8ec52271 (diff) | |
download | lua-language-server-01b0740d251a7fd62a64c1443ba969c95c55c3ab.zip |
require的自动完成可以显示全名了
Diffstat (limited to 'server/test/crossfile/completion.lua')
-rw-r--r-- | server/test/crossfile/completion.lua | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/server/test/crossfile/completion.lua b/server/test/crossfile/completion.lua index 73d60d5b..6976fd7f 100644 --- a/server/test/crossfile/completion.lua +++ b/server/test/crossfile/completion.lua @@ -118,14 +118,17 @@ TEST { { label = 'abc', kind = CompletionItemKind.File, + textEdit = EXISTS, }, { label = 'abc.aaa', kind = CompletionItemKind.File, + textEdit = EXISTS, }, { label = 'abcde', kind = CompletionItemKind.File, + textEdit = EXISTS, }, } } @@ -144,6 +147,7 @@ TEST { { label = 'abc', kind = CompletionItemKind.File, + textEdit = EXISTS, }, } } @@ -166,6 +170,7 @@ TEST { { label = 'abc.init', kind = CompletionItemKind.File, + textEdit = EXISTS, }, } } @@ -186,8 +191,9 @@ TEST { }, completion = { { - label = 'init', + label = 'abc.init', kind = CompletionItemKind.File, + textEdit = EXISTS, }, } } @@ -208,8 +214,9 @@ TEST { }, completion = { { - label = 'init', + label = 'abc.init', kind = CompletionItemKind.File, + textEdit = EXISTS, }, } } @@ -230,8 +237,9 @@ TEST { }, completion = { { - label = 'core', + label = 'core.core', kind = CompletionItemKind.File, + textEdit = EXISTS, }, } } @@ -254,10 +262,12 @@ TEST { { label = 'x111', kind = CompletionItemKind.File, + textEdit = EXISTS, }, { label = 'x000', kind = CompletionItemKind.File, + textEdit = EXISTS, }, } } |