diff options
Diffstat (limited to 'test/completion/init.lua')
-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 fc9233d8..5f79ea21 100644 --- a/test/completion/init.lua +++ b/test/completion/init.lua @@ -2093,3 +2093,25 @@ local s = f() s.$ ]] (EXISTS) + +Cared['description'] = true +TEST [[ +---@class cc +---@field aaa number +---@field bbb number + +---@type cc +local t +print(t.aa$) +]] +{ + { + label = 'aaa', + kind = define.CompletionItemKind.Field, + description = [[ +```lua +field cc.aaa: number +```]] + }, +} +Cared['description'] = nil |