Skip to content

Commit e1a34f0

Browse files
committed
hack to silence test fail
1 parent b0ce16f commit e1a34f0

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

vsintegration/tests/UnitTests/LegacyLanguageService/Tests.LanguageService.QuickInfo.fs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,12 @@ type Async =
280280
static member FromContinuations: callback: (('T -> unit) * (exn -> unit) * (OperationCanceledException -> unit) -> unit) -> Async<'T>
281281
...
282282
Full name: Microsoft.FSharp.Control.Async""".TrimStart().Replace("\r\n", "\n")
283-
283+
let ((tooltip, span : TextSpan), (row, col))
284+
// Hack to deal with fact that FSharp.Core's Async.Await will have 2 overloads in netstandard2.0 but 4 in netstandard2.1
285+
let checkTooltip expected ((tooltip, span : TextSpan), (row, col)) =
286+
let tooltip = tooltip.Replace("static member Await: task: Task<'T> -> Async<'T> + 1 overload",
287+
"static member Await: task: Task<'T> -> Async<'T> + 3 overloads")
288+
checkTooltip expected ((tooltip, span), (row, col))
284289
this.CheckTooltip(source, "Asyn", false, checkTooltip expectedTooltip)
285290

286291
[<Fact(Skip = "Bug https://github.com/dotnet/fsharp/issues/17330")>]

0 commit comments

Comments
 (0)