diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-11-03 15:24:32 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-11-03 15:24:32 +0800 |
commit | 213f5176ff3125feab1e743ef57abba0e18a44a5 (patch) | |
tree | ebf8d225bfd3bc041e3614ce546a85a7bf833492 /test/completion/common.lua | |
parent | b04dee92ee20fb4548c5f941af3ea40603828fac (diff) | |
download | lua-language-server-213f5176ff3125feab1e743ef57abba0e18a44a5.zip |
supports completion with table field of function
resolve #1533
Diffstat (limited to 'test/completion/common.lua')
-rw-r--r-- | test/completion/common.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/completion/common.lua b/test/completion/common.lua index 2438618e..dab31c31 100644 --- a/test/completion/common.lua +++ b/test/completion/common.lua @@ -3980,3 +3980,19 @@ TEST [[ } }, } + +TEST [[ +---@class A +---@field f fun(x: string): string + +---@type A +local t = { + f = <??> +} +]] +{ + { + label = 'fun(x: string):string', + kind = define.CompletionItemKind.Function, + } +} |