diff --git a/vsintegration/src/FSharp.Editor/Navigation/FindReferencesService.fs b/vsintegration/src/FSharp.Editor/Navigation/FindReferencesService.fs index 8eb06ed9327..540126e06af 100644 --- a/vsintegration/src/FSharp.Editor/Navigation/FindReferencesService.fs +++ b/vsintegration/src/FSharp.Editor/Navigation/FindReferencesService.fs @@ -109,7 +109,9 @@ type internal FSharpFindReferencesService let projectsToCheck = match scope with | Some (SymbolDeclarationLocation.Projects (declProjects, false)) -> - declProjects |> List.collect (fun x -> x.GetDependentProjects()) + [ for declProject in declProjects do + yield declProject + yield! declProject.GetDependentProjects() ] | Some (SymbolDeclarationLocation.Projects (declProjects, true)) -> declProjects // The symbol is declared in .NET framework, an external assembly or in a C# project within the solution. // In order to find all its usages we have to check all F# projects.