summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-21 17:19:20 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-21 17:19:20 +0800
commit5ddbf413f3484843d143a7e4a9c228a847c95eef (patch)
treeaba24212c6a08597d7f29496abbf982fa9da933a /server
parent9998cbabf7e8fc795c45ad9c8b91c243e87524a5 (diff)
downloadlua-language-server-5ddbf413f3484843d143a7e4a9c228a847c95eef.zip
找不到参数时关闭参数提示
Diffstat (limited to 'server')
-rw-r--r--server/src/matcher/signature.lua5
1 files changed, 4 insertions, 1 deletions
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