summaryrefslogtreecommitdiff
path: root/test/completion
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-11-23 15:16:00 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-11-23 15:16:00 +0800
commit2c7286dbffea7bb33843364c04f79c38b485c51b (patch)
treeaef0b3ac21771a34e0e57d7794739947da12f8ae /test/completion
parenta933f2e79497c357d3b3cc245c4760e83cc82d3b (diff)
downloadlua-language-server-2c7286dbffea7bb33843364c04f79c38b485c51b.zip
fix #1704
Diffstat (limited to 'test/completion')
-rw-r--r--test/completion/common.lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/completion/common.lua b/test/completion/common.lua
index 7591617e..bf8aca3f 100644
--- a/test/completion/common.lua
+++ b/test/completion/common.lua
@@ -4055,3 +4055,24 @@ x.<??>
kind = define.CompletionItemKind.Enum,
},
}
+
+TEST [[
+---@param x {damage: integer, count: integer, health:integer}
+local function f(x) end
+
+f {<??>}
+]]
+{
+ {
+ label = 'count',
+ kind = define.CompletionItemKind.Property,
+ },
+ {
+ label = 'damage',
+ kind = define.CompletionItemKind.Property,
+ },
+ {
+ label = 'health',
+ kind = define.CompletionItemKind.Property,
+ },
+}