@@ -828,7 +828,7 @@ namespace ts {
828828 if ( state . options . verbose ) reportStatus ( state , Diagnostics . Building_project_0 , project ) ;
829829
830830 if ( config . fileNames . length === 0 ) {
831- reportAndStoreErrors ( state , projectPath , config . errors ) ;
831+ reportAndStoreErrors ( state , projectPath , getConfigFileParsingDiagnostics ( config ) ) ;
832832 // Nothing to build - must be a solution file, basically
833833 buildResult = BuildResultFlags . None ;
834834 step = Step . QueueReferencingProjects ;
@@ -846,7 +846,7 @@ namespace ts {
846846 config . options ,
847847 compilerHost ,
848848 getOldProgram ( state , projectPath , config ) ,
849- config . errors ,
849+ getConfigFileParsingDiagnostics ( config ) ,
850850 config . projectReferences
851851 ) ;
852852 step ++ ;
@@ -1118,7 +1118,7 @@ namespace ts {
11181118 function needsBuild ( { options } : SolutionBuilderState , status : UpToDateStatus , config : ParsedCommandLine ) {
11191119 if ( status . type !== UpToDateStatusType . OutOfDateWithPrepend || options . force ) return true ;
11201120 return config . fileNames . length === 0 ||
1121- ! ! config . errors . length ||
1121+ ! ! getConfigFileParsingDiagnostics ( config ) . length ||
11221122 ! isIncrementalCompilation ( config . options ) ;
11231123 }
11241124
@@ -1172,7 +1172,7 @@ namespace ts {
11721172 verboseReportProjectStatus ( state , project , status ) ;
11731173 if ( ! options . force ) {
11741174 if ( status . type === UpToDateStatusType . UpToDate ) {
1175- reportAndStoreErrors ( state , projectPath , config . errors ) ;
1175+ reportAndStoreErrors ( state , projectPath , getConfigFileParsingDiagnostics ( config ) ) ;
11761176 projectPendingBuild . delete ( projectPath ) ;
11771177 // Up to date, skip
11781178 if ( options . dry ) {
@@ -1183,7 +1183,7 @@ namespace ts {
11831183 }
11841184
11851185 if ( status . type === UpToDateStatusType . UpToDateWithUpstreamTypes ) {
1186- reportAndStoreErrors ( state , projectPath , config . errors ) ;
1186+ reportAndStoreErrors ( state , projectPath , getConfigFileParsingDiagnostics ( config ) ) ;
11871187 return createUpdateOutputFileStampsProject (
11881188 state ,
11891189 project ,
@@ -1195,7 +1195,7 @@ namespace ts {
11951195 }
11961196
11971197 if ( status . type === UpToDateStatusType . UpstreamBlocked ) {
1198- reportAndStoreErrors ( state , projectPath , config . errors ) ;
1198+ reportAndStoreErrors ( state , projectPath , getConfigFileParsingDiagnostics ( config ) ) ;
11991199 projectPendingBuild . delete ( projectPath ) ;
12001200 if ( options . verbose ) {
12011201 reportStatus (
@@ -1211,7 +1211,7 @@ namespace ts {
12111211 }
12121212
12131213 if ( status . type === UpToDateStatusType . ContainerOnly ) {
1214- reportAndStoreErrors ( state , projectPath , config . errors ) ;
1214+ reportAndStoreErrors ( state , projectPath , getConfigFileParsingDiagnostics ( config ) ) ;
12151215 projectPendingBuild . delete ( projectPath ) ;
12161216 // Do nothing
12171217 continue ;
0 commit comments