summaryrefslogtreecommitdiff
path: root/server/test/signature
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-29 10:16:33 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-29 10:16:33 +0800
commit9c2843279fb04b75169057c3d81a93ce87ebcf34 (patch)
tree228de57591f59de8349ca849f2200affefe77b7c /server/test/signature
parent51fdb8bbd4a78703ca0dd95a68d09e8a188407c3 (diff)
downloadlua-language-server-9c2843279fb04b75169057c3d81a93ce87ebcf34.zip
在函数内或表内则不再提示参数
Diffstat (limited to 'server/test/signature')
-rw-r--r--server/test/signature/init.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/server/test/signature/init.lua b/server/test/signature/init.lua
index cf335f05..3e83b5ba 100644
--- a/server/test/signature/init.lua
+++ b/server/test/signature/init.lua
@@ -13,6 +13,7 @@ function TEST(script)
assert(vm)
local hovers = core.signature(vm, pos)
if hovers then
+ assert(expect)
local hover = hovers[#hovers]
local label = hover.label:gsub('^[\r\n]*(.-)[\r\n]*$', '%1'):gsub('\r\n', '\n')
@@ -106,3 +107,13 @@ end
f(1, 'string@')
]]
(nil)
+
+TEST [[
+pcall(function () @ end)
+]]
+(nil)
+
+TEST [[
+table.unpack {@}
+]]
+(nil)