summaryrefslogtreecommitdiff
path: root/server/test/completion/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-06-26 20:06:10 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-06-26 20:06:10 +0800
commitf92a71db462b2769eea194143f15ab090b665862 (patch)
treeecd852562a7000e47e028718a27e13477569b6d0 /server/test/completion/init.lua
parent07b47b134c45a2528644bd6a481b8e46b691fdfc (diff)
downloadlua-language-server-f92a71db462b2769eea194143f15ab090b665862.zip
自动完成也支持 EmmyComment
Diffstat (limited to 'server/test/completion/init.lua')
-rw-r--r--server/test/completion/init.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua
index 2b63358e..c60e8ea0 100644
--- a/server/test/completion/init.lua
+++ b/server/test/completion/init.lua
@@ -1321,3 +1321,20 @@ JustTest
},
}
}
+
+TEST [[
+--- abc
+zzz = 1
+zz$
+]]
+{
+ {
+ label = 'zzz',
+ kind = CompletionItemKind.Enum,
+ detail = '(number) = 1',
+ documentation = {
+ kind = 'markdown',
+ value = 'abc',
+ }
+ }
+}