summaryrefslogtreecommitdiff
path: root/server/test/completion
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-27 15:47:13 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-27 15:47:13 +0800
commit5a1a7eba965aa447d32f2c3be054bcbbdca0388b (patch)
tree41dec8f8853c0dfce28588a59c7b31062f80ac53 /server/test/completion
parent1aa280d29710b08d9ae60597769165b4f55db527 (diff)
downloadlua-language-server-5a1a7eba965aa447d32f2c3be054bcbbdca0388b.zip
函数参数自动完成时过滤lib
Diffstat (limited to 'server/test/completion')
-rw-r--r--server/test/completion/init.lua24
1 files changed, 15 insertions, 9 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua
index 27b373e6..98c91acf 100644
--- a/server/test/completion/init.lua
+++ b/server/test/completion/init.lua
@@ -403,12 +403,18 @@ io.read(@)
},
}
---TEST [[
---list[#@]
---]]
---{
--- {
--- label = 'list+1',
--- kind = CompletionItemKind.Snippet,
--- }
---}
+TEST [[
+local function f(a, @)
+end
+]]
+(nil)
+
+TEST [[
+list[#@]
+]]
+{
+ {
+ label = 'list+1',
+ kind = CompletionItemKind.Snippet,
+ }
+}