Skip to content

Commit 676ed3e

Browse files
committed
parseProjectReferenceConfigFile: always set SourceFile.path
1 parent 4ee0084 commit 676ed3e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/compiler/program.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2699,11 +2699,12 @@ namespace ts {
26992699
projectReferenceRedirects.set(sourceFilePath, false);
27002700
return undefined;
27012701
}
2702-
sourceFile.path = sourceFilePath;
2703-
sourceFile.resolvedPath = sourceFilePath;
2704-
sourceFile.originalFileName = refPath;
27052702
commandLine = parseJsonSourceFileConfigFileContent(sourceFile, configParsingHost, basePath, /*existingOptions*/ undefined, refPath);
27062703
}
2704+
sourceFile.path = sourceFilePath;
2705+
sourceFile.resolvedPath = sourceFilePath;
2706+
sourceFile.originalFileName = refPath;
2707+
27072708
const resolvedRef: ResolvedProjectReference = { commandLine, sourceFile };
27082709
projectReferenceRedirects.set(sourceFilePath, resolvedRef);
27092710
if (commandLine.projectReferences) {

0 commit comments

Comments
 (0)