diff --git a/src/FsAutoComplete.Core/TipFormatter.fs b/src/FsAutoComplete.Core/TipFormatter.fs index dcc68102a..828621e8f 100644 --- a/src/FsAutoComplete.Core/TipFormatter.fs +++ b/src/FsAutoComplete.Core/TipFormatter.fs @@ -1058,8 +1058,8 @@ let private formatTaggedText (t: TaggedText) : string = | TextTag.StringLiteral | TextTag.Text | TextTag.Punctuation - | TextTag.UnknownType - | TextTag.UnknownEntity -> t.Text + | TextTag.UnknownType -> t.Text + | TextTag.UnknownEntity | TextTag.Enum | TextTag.Event | TextTag.ActivePatternCase @@ -1075,7 +1075,8 @@ let private formatUntaggedText (t: TaggedText) = t.Text let private formatUntaggedTexts = Array.map formatUntaggedText >> String.concat "" -let private formatTaggedTexts = Array.map formatTaggedText >> String.concat "" +let private formatTaggedTexts = + Array.map formatTaggedText >> String.concat "" >> (fun s -> s.Replace("``", "")) let private formatGenericParameters (typeMappings: TaggedText[] list) = typeMappings diff --git a/test/FsAutoComplete.Tests.Lsp/CoreTests.fs b/test/FsAutoComplete.Tests.Lsp/CoreTests.fs index 19ae26e60..c9717f321 100644 --- a/test/FsAutoComplete.Tests.Lsp/CoreTests.fs +++ b/test/FsAutoComplete.Tests.Lsp/CoreTests.fs @@ -308,7 +308,7 @@ let tooltipTests state = "" "**Generic Parameters**" "" - "* `'T` is `string`" ] // verify fancy descriptions for external library functions + "* `'T` is `System.String`" ] // verify fancy descriptions for external library functions and correct backticks for multiple segments verifyDescription 13 11 diff --git a/test/FsAutoComplete.Tests.Lsp/TestCases/Tooltips/Script.fsx b/test/FsAutoComplete.Tests.Lsp/TestCases/Tooltips/Script.fsx index 1844e333c..4f94127d3 100644 --- a/test/FsAutoComplete.Tests.Lsp/TestCases/Tooltips/Script.fsx +++ b/test/FsAutoComplete.Tests.Lsp/TestCases/Tooltips/Script.fsx @@ -2,7 +2,7 @@ let arrayOfTuples = [| 1, 2 |] let listOfTuples = [ 1, 2 ] let listOfStructTuples = [ struct(1, 2) ] let floatThatShouldHaveGenericReportedInTooltip = 1. -sprintf "asd" +sprintf "asd" /// /// My super summary