From 5ddbf413f3484843d143a7e4a9c228a847c95eef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 21 Dec 2018 17:19:20 +0800 Subject: =?UTF-8?q?=E6=89=BE=E4=B8=8D=E5=88=B0=E5=8F=82=E6=95=B0=E6=97=B6?= =?UTF-8?q?=E5=85=B3=E9=97=AD=E5=8F=82=E6=95=B0=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/matcher/signature.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'server') diff --git a/server/src/matcher/signature.lua b/server/src/matcher/signature.lua index 159fde80..7b51d5e6 100644 --- a/server/src/matcher/signature.lua +++ b/server/src/matcher/signature.lua @@ -46,7 +46,10 @@ return function (vm, pos) local hovers = {} for _, call in ipairs(calls) do - hovers[#hovers+1] = hover(call.var, call.source, nil, call.select) + local hvr = hover(call.var, call.source, nil, call.select) + if hvr.argLabel then + hovers[#hovers+1] = hvr + end end if #hovers == 0 then -- cgit v1.2.3