Skip to content

Commit b75ba63

Browse files
authored
Partially reverts 1b83b96 (microsoft#165372)
Partially reverts microsoft@1b83b96
1 parent c6210c1 commit b75ba63

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/vs/workbench/contrib/editSessions/browser/editSessions.contribution.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,11 @@ export class EditSessionsContribution extends Disposable implements IWorkbenchCo
297297
// Run the store action to get back a ref
298298
let ref: string | undefined;
299299
if (shouldStoreEditSession) {
300-
ref = await that.storeEditSession(false);
300+
ref = await that.progressService.withProgress({
301+
location: ProgressLocation.Notification,
302+
type: 'syncing',
303+
title: localize('store your edit session', 'Storing your edit session...')
304+
}, async () => that.storeEditSession(false));
301305
}
302306

303307
let uri = workspaceUri ?? await that.pickContinueEditSessionDestination();
@@ -406,7 +410,7 @@ export class EditSessionsContribution extends Disposable implements IWorkbenchCo
406410
} else if (ref !== undefined) {
407411
this.notificationService.warn(localize('no edit session content for ref', 'Could not resume edit session contents for ID {0}.', ref));
408412
}
409-
this.logService.info(`Aborting resuming edit session as no edit session content is available to be applied from ref ${ref}.`);
413+
this.logService.info(ref !== undefined ? `Aborting resuming edit session as no edit session content is available to be applied from ref ${ref}.` : `Aborting resuming edit session as no edit session content is available to be applied`);
410414
return;
411415
}
412416
const editSession = data.editSession;

0 commit comments

Comments
 (0)