File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -260,6 +260,16 @@ namespace ts {
260260 const configFileCache = createConfigFileCache ( host ) ;
261261
262262 function getUpToDateStatus ( project : ParsedCommandLine , context : BuildContext ) : UpToDateStatus {
263+ const prior = context . projectStatus . getValueOrUndefined ( project . options . configFilePath ) ;
264+ if ( prior !== undefined ) {
265+ return prior ;
266+ }
267+ const actual = getUpToDateStatusWorker ( project , context ) ;
268+ context . projectStatus . setValue ( project . options . configFilePath , actual ) ;
269+ return actual ;
270+ }
271+
272+ function getUpToDateStatusWorker ( project : ParsedCommandLine , context : BuildContext ) : UpToDateStatus {
263273 let newestInputFileName : string = '???' ;
264274 let newestInputFileTime = MinimumDate ;
265275 // Get timestamps of input files
@@ -381,6 +391,6 @@ namespace ts {
381391
382392 return {
383393 getUpToDateStatus
384- }
394+ } ;
385395 }
386396}
You can’t perform that action at this time.
0 commit comments