summaryrefslogtreecommitdiff
path: root/test-beta/completion/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-03 18:51:25 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-03 18:51:25 +0800
commita9875d31fd5097a28099096fec7ebe773285629e (patch)
treed1960a029754c4af72b78fd38b10a2121911f1f0 /test-beta/completion/init.lua
parent535b1fa45f3f1f4e90b6e052ba9e280fb1359b63 (diff)
downloadlua-language-server-a9875d31fd5097a28099096fec7ebe773285629e.zip
doc.comment
Diffstat (limited to 'test-beta/completion/init.lua')
-rw-r--r--test-beta/completion/init.lua32
1 files changed, 9 insertions, 23 deletions
diff --git a/test-beta/completion/init.lua b/test-beta/completion/init.lua
index e877a36d..de22e3f4 100644
--- a/test-beta/completion/init.lua
+++ b/test-beta/completion/init.lua
@@ -1584,7 +1584,6 @@ end)
]]
(nil)
-do return end
TEST [[
--- JustTest
---@overload fun(list:table):string
@@ -1603,31 +1602,16 @@ zzz$
{
label = 'zzzzz',
kind = define.CompletionItemKind.Function,
- detail = '(function)(4 prototypes)',
- description = {
- kind = 'markdown',
- value = [[
-```lua
-function zzzzz(list: table, sep: string, i: number, j: number)
- -> string
-```
-JustTest
-```lua
-
-```
-
-]]
- },
},
{
label = 'zzzzz()',
kind = define.CompletionItemKind.Snippet,
- detail = '(function)(4 prototypes)',
insertText = EXISTS,
- description = EXISTS,
}
}
+Cared['detail'] = true
+Cared['description'] = true
TEST [[
--- abc
zzz = 1
@@ -1637,14 +1621,16 @@ zz$
{
label = 'zzz',
kind = define.CompletionItemKind.Enum,
- detail = '(number) = 1',
- description = {
- kind = 'markdown',
- value = 'abc',
- }
+ detail = 'integer = 1',
+ description = [[
+```lua
+global zzz: integer = 1
+```
+ abc]],
}
}
+do return end
TEST [[
---@param x string
---| "'选项1'" # 注释1