lifecycle - log long running operations preventing shutdown (for #112278)

This commit is contained in:
Benjamin Pasero
2020-12-14 08:13:35 +01:00
parent 96b426ef1d
commit 28964872e7
14 changed files with 103 additions and 58 deletions

View File

@@ -271,7 +271,7 @@ export class UserDataSyncWorkbenchService extends Disposable implements IUserDat
const manualSyncTask = await this.userDataSyncService.createManualSyncTask();
const disposable = isWeb
? Disposable.None /* In web long running shutdown handlers will not work */
: this.lifecycleService.onBeforeShutdown(e => e.veto(this.onBeforeShutdown(manualSyncTask)));
: this.lifecycleService.onBeforeShutdown(e => e.veto(this.onBeforeShutdown(manualSyncTask), 'veto.settingsSync'));
try {
await this.syncBeforeTurningOn(title, manualSyncTask);