Skip to content

Commit cb02934

Browse files
committed
fix user def'd sig helper
1 parent 8d5bb56 commit cb02934

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/requests/textDocument.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -423,14 +423,14 @@ function get_sig_args(sig)
423423
end
424424
state, s = StaticLint.State(), StaticLint.Scope()
425425
StaticLint.get_fcall_bindings(sig, state, s)
426-
out = []
426+
out = Tuple{Int,String}[]
427427
if haskey(state.bindings, ())
428428
for (n,B) in state.bindings[()]
429429
b = last(B)
430430
push!(out, (b.si.n, n))
431431
end
432432
end
433-
sort!(out, lt = (a,b)->a[1]<b[1])
433+
sort!(out, lt = (a,b)->a[1]<b[1])
434434
return [o[2] for o in out]
435435
end
436436

@@ -446,7 +446,7 @@ function get_signatures(x::StaticLint.ResolvedRef, state, sigs = SignatureInform
446446
!(m.val isa CSTParser.AbstractEXPR) && continue
447447
sig = CSTParser.get_sig(m.val)
448448
args = get_sig_args(sig)
449-
PI = map(p->ParameterInformation(string(CSTParser.str_value(p[1]))), args)
449+
PI = map(p->ParameterInformation(string(p)), args)
450450
push!(sigs, SignatureInformation(string(Expr(sig)), "", PI))
451451
end
452452
end

0 commit comments

Comments
 (0)