Create original project when location is in source of project reference redirect

This commit is contained in:
Sheetal Nandi
2019-06-26 15:57:22 -07:00
parent 2f30add809
commit da9260c013
7 changed files with 34 additions and 12 deletions

View File

@@ -814,7 +814,7 @@ namespace ts {
let projectReferenceRedirects: Map<ResolvedProjectReference | false> | undefined;
let mapFromFileToProjectReferenceRedirects: Map<Path> | undefined;
let mapFromToProjectReferenceRedirectSource: Map<SourceOfProjectReferenceRedirect> | undefined;
const useSourceOfReference = host.useSourceInsteadOfReferenceRedirect && host.useSourceInsteadOfReferenceRedirect();
const useSourceOfReference = useSourceInsteadOfReferenceRedirect(host);
const shouldCreateNewSourceFile = shouldProgramCreateNewSourceFiles(oldProgram, options);
const structuralIsReused = tryReuseStructureFromOldProgram();