File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/vs/platform/userDataSync/common Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -333,7 +333,7 @@ export class UserDataAutoSyncService extends Disposable implements IUserDataAuto
333
333
return this . syncTriggerDelayer . cancel ( ) ;
334
334
}
335
335
336
- if ( options ?. skipIfSyncedRecently && this . lastSyncTriggerTime && new Date ( ) . getTime ( ) - this . lastSyncTriggerTime < 15_000 ) {
336
+ if ( options ?. skipIfSyncedRecently && this . lastSyncTriggerTime && new Date ( ) . getTime ( ) - this . lastSyncTriggerTime < 10_000 ) {
337
337
this . logService . debug ( '[AutoSync] Skipping because sync was triggered recently.' , sources ) ;
338
338
return ;
339
339
}
@@ -352,11 +352,11 @@ export class UserDataAutoSyncService extends Disposable implements IUserDataAuto
352
352
}
353
353
354
354
protected getSyncTriggerDelayTime ( ) : number {
355
- if ( this . lastSyncTriggerTime && new Date ( ) . getTime ( ) - this . lastSyncTriggerTime > 15_000 ) {
356
- this . logService . debug ( '[AutoSync] Sync immediately because last sync was triggered more than 15 seconds ago.' ) ;
355
+ if ( this . lastSyncTriggerTime && new Date ( ) . getTime ( ) - this . lastSyncTriggerTime > 10_000 ) {
356
+ this . logService . debug ( '[AutoSync] Sync immediately because last sync was triggered more than 10 seconds ago.' ) ;
357
357
return 0 ;
358
358
}
359
- return 10_000 ; /* Debounce for 10 seconds if there are no failures */
359
+ return 3_000 ; /* Debounce for 3 seconds if there are no failures */
360
360
}
361
361
362
362
}
You can’t perform that action at this time.
0 commit comments