From 195f1280089123e0f4effd89de9b6240ff5acd08 Mon Sep 17 00:00:00 2001 From: Phillip Carter Date: Tue, 22 Dec 2020 08:45:11 -0800 Subject: [PATCH] Wrap function tooltip in function sighelp in parens (#10760) --- Completion/SignatureHelp.fs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Completion/SignatureHelp.fs b/Completion/SignatureHelp.fs index 22f3dd25c94..9f9d11263ef 100644 --- a/Completion/SignatureHelp.fs +++ b/Completion/SignatureHelp.fs @@ -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