Skip to content

Commit 29e6391

Browse files
authored
Don't store edit session if no Continue On destination is selected (microsoft#159691)
1 parent 98c9c25 commit 29e6391

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,12 +252,12 @@ export class EditSessionsContribution extends Disposable implements IWorkbenchCo
252252
};
253253
that.telemetryService.publicLog2<ContinueEditSessionEvent, ContinueEditSessionClassification>('editSessions.continue.store');
254254

255-
// Run the store action to get back a ref
256-
const ref = await that.storeEditSession(false);
257-
258255
let uri = workspaceUri ?? await that.pickContinueEditSessionDestination();
259256
if (uri === undefined) { return; }
260257

258+
// Run the store action to get back a ref
259+
const ref = await that.storeEditSession(false);
260+
261261
// Append the ref to the URI
262262
if (ref !== undefined) {
263263
const encodedRef = encodeURIComponent(ref);

0 commit comments

Comments
 (0)