diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-08-13 03:50:55 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-08-13 03:50:55 +0800 |
commit | 30ee7c0e30eb5dcc2ec82514343b107d1b201200 (patch) | |
tree | 44df79de90a45e57af9349cbb613e8989a36755a /test/completion | |
parent | c62b62ee0c0fb980d96089d546388efd70fc6ebe (diff) | |
download | lua-language-server-30ee7c0e30eb5dcc2ec82514343b107d1b201200.zip |
fix #1451
Diffstat (limited to 'test/completion')
-rw-r--r-- | test/completion/common.lua | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/completion/common.lua b/test/completion/common.lua index f1100e36..1d7d414c 100644 --- a/test/completion/common.lua +++ b/test/completion/common.lua @@ -3699,6 +3699,37 @@ f(<??>) } TEST [[ +---@enum A +ppp.fff = { + x = 1, + y = 'ss', +} + +---@param x A +local function f(x) end + +f(<??>) +]] +{ + { + label = 'ppp.fff.x', + kind = define.CompletionItemKind.EnumMember, + }, + { + label = 'ppp.fff.y', + kind = define.CompletionItemKind.EnumMember, + }, + { + label = '1', + kind = define.CompletionItemKind.EnumMember, + }, + { + label = '"ss"', + kind = define.CompletionItemKind.EnumMember, + }, +} + +TEST [[ -- <??> ]] |