summaryrefslogtreecommitdiff
path: root/server/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-07 15:10:49 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-07 15:10:49 +0800
commitf082b09302feccb0f9bb8299ffd2690e085df487 (patch)
tree7fd940f8b1d4154c9939b0892cd0856cd48262ed /server/test
parent285c7a640cd076455b7a04799fe0fbf9f242d129 (diff)
downloadlua-language-server-f082b09302feccb0f9bb8299ffd2690e085df487.zip
支持可选参数
Diffstat (limited to 'server/test')
-rw-r--r--server/test/completion/init.lua40
1 files changed, 40 insertions, 0 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua
index 2dba35bc..55a71b53 100644
--- a/server/test/completion/init.lua
+++ b/server/test/completion/init.lua
@@ -405,41 +405,81 @@ collectgarbage('@')
label = 'collect',
kind = CompletionItemKind.EnumMember,
documentation = EXISTS,
+ textEdit = {
+ start = 16,
+ finish = 18,
+ newText = '"collect"',
+ },
},
{
label = 'stop',
kind = CompletionItemKind.EnumMember,
documentation = EXISTS,
+ textEdit = {
+ start = 16,
+ finish = 18,
+ newText = '"stop"',
+ },
},
{
label = 'restart',
kind = CompletionItemKind.EnumMember,
documentation = EXISTS,
+ textEdit = {
+ start = 16,
+ finish = 18,
+ newText = '"restart"',
+ },
},
{
label = 'count',
kind = CompletionItemKind.EnumMember,
documentation = EXISTS,
+ textEdit = {
+ start = 16,
+ finish = 18,
+ newText = '"count"',
+ },
},
{
label = 'step',
kind = CompletionItemKind.EnumMember,
documentation = EXISTS,
+ textEdit = {
+ start = 16,
+ finish = 18,
+ newText = '"step"',
+ },
},
{
label = 'setpause',
kind = CompletionItemKind.EnumMember,
documentation = EXISTS,
+ textEdit = {
+ start = 16,
+ finish = 18,
+ newText = '"setpause"',
+ },
},
{
label = 'setstepmul',
kind = CompletionItemKind.EnumMember,
documentation = EXISTS,
+ textEdit = {
+ start = 16,
+ finish = 18,
+ newText = '"setstepmul"',
+ },
},
{
label = 'isrunning',
kind = CompletionItemKind.EnumMember,
documentation = EXISTS,
+ textEdit = {
+ start = 16,
+ finish = 18,
+ newText = '"isrunning"',
+ },
},
}