mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 13:29:44 +00:00
Don't store edit session if no Continue On destination is selected (#159691)
This commit is contained in:
parent
98c9c2543a
commit
29e6391a40
|
@ -252,12 +252,12 @@ export class EditSessionsContribution extends Disposable implements IWorkbenchCo
|
|||
};
|
||||
that.telemetryService.publicLog2<ContinueEditSessionEvent, ContinueEditSessionClassification>('editSessions.continue.store');
|
||||
|
||||
// Run the store action to get back a ref
|
||||
const ref = await that.storeEditSession(false);
|
||||
|
||||
let uri = workspaceUri ?? await that.pickContinueEditSessionDestination();
|
||||
if (uri === undefined) { return; }
|
||||
|
||||
// Run the store action to get back a ref
|
||||
const ref = await that.storeEditSession(false);
|
||||
|
||||
// Append the ref to the URI
|
||||
if (ref !== undefined) {
|
||||
const encodedRef = encodeURIComponent(ref);
|
||||
|
|
Loading…
Reference in a new issue