We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b361cf commit 0dac9c0Copy full SHA for 0dac9c0
vsintegration/src/FSharp.Editor/Navigation/FindUsagesService.fs
@@ -103,7 +103,8 @@ type internal FSharpFindUsagesService
103
|> Option.defaultValue externalDefinitionItem
104
105
let referenceItem = FSharpSourceReferenceItem(definitionItem, FSharpDocumentSpan(doc, textSpan))
106
- do! context.OnReferenceFoundAsync(referenceItem) |> Async.AwaitTask }
+ // REVIEW: OnReferenceFoundAsync is throwing inside Roslyn, putting a try/with so find-all refs doesn't fail.
107
+ try do! context.OnReferenceFoundAsync(referenceItem) |> Async.AwaitTask with | _ -> () }
108
109
match symbolUse.GetDeclarationLocation document with
110
| Some SymbolDeclarationLocation.CurrentDocument ->
0 commit comments