Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

Commit

Permalink
Wrap function tooltip in function sighelp in parens (dotnet#10760)
Browse files Browse the repository at this point in the history
  • Loading branch information
cartermp authored Dec 22, 2020
1 parent 38c1595 commit 195f128
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Completion/SignatureHelp.fs
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,14 @@ type internal FSharpSignatureHelpProvider
|]
|> ResizeArray

if argument.Type.IsFunctionType then
display.Add(TaggedText(TextTags.Punctuation, "("))

display.AddRange(tt)

if argument.Type.IsFunctionType then
display.Add(TaggedText(TextTags.Punctuation, ")"))

let info =
{ ParameterName = argument.DisplayName
IsOptional = false
Expand Down

0 comments on commit 195f128

Please sign in to comment.