diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-12-31 17:57:21 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-12-31 17:57:25 +0800 |
commit | ee6fc1dd36ab448a6d3e1d9a3d2c0089bf2b678e (patch) | |
tree | a87995dac75a1a77ec6d36c75d3940c691a8ea7e /test | |
parent | 83427096a606baedebb7c59af4e525e8a290f1eb (diff) | |
download | lua-language-server-ee6fc1dd36ab448a6d3e1d9a3d2c0089bf2b678e.zip |
close #311 generate function documentation
Diffstat (limited to 'test')
-rw-r--r-- | test/completion/init.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/completion/init.lua b/test/completion/init.lua index e103215e..eb696eb8 100644 --- a/test/completion/init.lua +++ b/test/completion/init.lua @@ -1967,4 +1967,26 @@ function (${1:x}, ${2:y})\ end", }, } + +TEST [[ +---$ +local function f(a, b, c) + return a + 1, b .. '', c[1] +end +]] +{ + { + label = '@param;@return', + kind = define.CompletionItemKind.Snippet, + insertText = "\z +${1:comment}\ +---@param a ${2:number}\ +---@param b ${3:string}\ +---@param c ${4:table}\ +---@return ${5:number}\ +---@return ${6:string}\ +---@return ${7:any}", + }, +} + Cared['insertText'] = nil |