File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,8 @@ export class RemoteContentExclusion implements IDisposable {
104
104
// We're missing entries for this repository in the cache, so we fetch it.
105
105
// Or it has been more than 30 minutes so the current rules are stale
106
106
if ( this . shouldFetchContentExclusionRules ( repoMetadata ) || ( Date . now ( ) - this . _lastRuleFetch > 30 * 60 * 1000 ) ) {
107
+ this . _logService . trace ( `Fetching content exclusions, due to ${ this . shouldFetchContentExclusionRules ( repoMetadata ) ? 'repository change' : 'stale cache' } .` ) ;
108
+ this . _lastRuleFetch = Date . now ( ) ;
107
109
await raceCancellationError ( this . makeContentExclusionRequest ( ) , token ) ;
108
110
}
109
111
@@ -178,6 +180,7 @@ export class RemoteContentExclusion implements IDisposable {
178
180
const repos = await Promise . all ( repoUris . map ( uri => this . _gitService . getRepositoryFetchUrls ( uri ) ) ) ;
179
181
const repoInfos = repos . map ( repo => this . shouldFetchContentExclusionRules ( this . getRepositoryInfo ( repo ) ) ) ;
180
182
if ( repoInfos . some ( info => info ) ) {
183
+ this . _lastRuleFetch = Date . now ( ) ;
181
184
await this . makeContentExclusionRequest ( ) ;
182
185
}
183
186
}
You can’t perform that action at this time.
0 commit comments