Skip to content

Commit

Permalink
fix sig provider with function return decl (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacLN authored Nov 20, 2017
1 parent 00af80e commit b0dff96
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/provider_signatures.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit b0dff96

Please sign in to comment.