diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-21 17:19:20 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-21 17:19:20 +0800 |
commit | 5ddbf413f3484843d143a7e4a9c228a847c95eef (patch) | |
tree | aba24212c6a08597d7f29496abbf982fa9da933a /server | |
parent | 9998cbabf7e8fc795c45ad9c8b91c243e87524a5 (diff) | |
download | lua-language-server-5ddbf413f3484843d143a7e4a9c228a847c95eef.zip |
找不到参数时关闭参数提示
Diffstat (limited to 'server')
-rw-r--r-- | server/src/matcher/signature.lua | 5 |
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 |