mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 11:38:51 +01:00
lifecycle - log long running operations preventing shutdown (for #112278)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user