From b0dff964d7e3d454b8eb756d06bb9e3601f3c595 Mon Sep 17 00:00:00 2001 From: ZacNugent Date: Mon, 20 Nov 2017 21:27:13 +0000 Subject: [PATCH] fix sig provider with function return decl (#232) --- src/provider_signatures.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/provider_signatures.jl b/src/provider_signatures.jl index 348d353e..b128b54d 100644 --- a/src/provider_signatures.jl +++ b/src/provider_signatures.jl @@ -39,6 +39,9 @@ function process(r::JSONRPC.Request{Val{Symbol("textDocument/signatureHelp")},Te for vl in s.symbols[nsEy] if vl.v.t == :function sig = CSTParser._get_fsig(vl.v.val) + if sig isa CSTParser.BinarySyntaxOpCall && CSTParser.is_decl(sig.op) + sig = sig.arg1 + end Ps = ParameterInformation[] for j = 2:length(sig.args) if sig.args[j] isa EXPR{CSTParser.Parameters}