From 263fbe268c1b5b02bc35d2661e4ea4ec7c631047 Mon Sep 17 00:00:00 2001 From: Joyce Er Date: Thu, 14 Jul 2022 11:42:04 -0700 Subject: [PATCH] Fix: do not delete partially applied edit sessions (#155218) --- .../contrib/editSessions/browser/editSessions.contribution.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/editSessions/browser/editSessions.contribution.ts b/src/vs/workbench/contrib/editSessions/browser/editSessions.contribution.ts index e292a79c0849f..34d89d716a288 100644 --- a/src/vs/workbench/contrib/editSessions/browser/editSessions.contribution.ts +++ b/src/vs/workbench/contrib/editSessions/browser/editSessions.contribution.ts @@ -270,7 +270,7 @@ export class EditSessionsContribution extends Disposable implements IWorkbenchCo const folderRoot = this.contextService.getWorkspace().folders.find((f) => f.name === folder.name); if (!folderRoot) { this.logService.info(`Skipping applying ${folder.workingChanges.length} changes from edit session with ref ${ref} as no corresponding workspace folder named ${folder.name} is currently open.`); - continue; + return; } for (const repository of this.scmService.repositories) {