mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:04:49 -05:00
Fix find-all-refs crashing in some project references scenarios (#42025)
* Add failing test * Fix test * Accept baseline
This commit is contained in:
@@ -568,7 +568,7 @@ namespace ts.server {
|
||||
}
|
||||
|
||||
function addToTodo<TLocation extends DocumentPosition | undefined>(project: Project, location: TLocation, toDo: Push<ProjectAndLocation<TLocation>>, seenProjects: Set<string>): void {
|
||||
if (addToSeen(seenProjects, project)) toDo.push({ project, location });
|
||||
if (!project.isOrphan() && addToSeen(seenProjects, project)) toDo.push({ project, location });
|
||||
}
|
||||
|
||||
function addToSeen(seenProjects: Set<string>, project: Project) {
|
||||
|
||||
Reference in New Issue
Block a user