diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-03 18:51:25 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-03 18:51:25 +0800 |
commit | a9875d31fd5097a28099096fec7ebe773285629e (patch) | |
tree | d1960a029754c4af72b78fd38b10a2121911f1f0 /test-beta/completion/init.lua | |
parent | 535b1fa45f3f1f4e90b6e052ba9e280fb1359b63 (diff) | |
download | lua-language-server-a9875d31fd5097a28099096fec7ebe773285629e.zip |
doc.comment
Diffstat (limited to 'test-beta/completion/init.lua')
-rw-r--r-- | test-beta/completion/init.lua | 32 |
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 |