From c335214bb63bcd33267314e2045310c9a172b1de Mon Sep 17 00:00:00 2001 From: Vasily Kirichenko Date: Sat, 31 Dec 2016 11:19:00 +0300 Subject: [PATCH] fixed: Find All References does not search symbol usages in the project(s) the symbol is declared --- .../src/FSharp.Editor/Navigation/FindReferencesService.fs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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.