Skip to content

Commit

Permalink
Try to fix parameter hints
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof-Cieslak committed Apr 27, 2016
1 parent 918f913 commit e03c76a
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/Components/ParameterHints.fs
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,13 @@ module ParameterHints =
let res = createEmpty<SignatureHelp> ()
let sigs = o.Data.Overloads |> Array.map (fun c ->
try
let signature = createEmpty<SignatureInformation> ()
let tip = c.Tip.[0].[0]
signature.label <- tip.Signature
signature.documentation <- tip.Comment
signature.parameters <-
c.Parameters |> Array.map (fun p ->
let parameter = createEmpty<ParameterInformation> ()
parameter.label <- p.Name
parameter.documentation <- p.Description
parameter )
let signature = SignatureInformation.Create (tip.Signature, tip.Comment)
c.Parameters |> Array.iter (fun p ->
let parameter = ParameterInformation.Create (p.Name, p.CanonicalTypeTextForSorting)
signature.parameters.pushOverload2(parameter )
|> ignore
)
Some signature
with
| e ->
Expand All @@ -36,6 +33,7 @@ module ParameterHints =
res.activeParameter <- float (o.Data.CurrentParameter)
res.activeSignature <- 0.
res.signatures <- sigs
Globals.console.log res
res


Expand Down

0 comments on commit e03c76a

Please sign in to comment.