File tree Expand file tree Collapse file tree
src/vs/workbench/services/workspaces/browser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -200,8 +200,11 @@ export abstract class AbstractWorkspaceEditingService implements IWorkspaceEditi
200200 const remoteAuthority = this . environmentService . configuration . remoteAuthority ;
201201 const untitledWorkspace = await this . workspacesService . createUntitledWorkspace ( folders , remoteAuthority ) ;
202202 if ( path ) {
203- await this . saveWorkspaceAs ( untitledWorkspace , path ) ;
204- await this . workspacesService . deleteUntitledWorkspace ( untitledWorkspace ) ; // https://github.com/microsoft/vscode/issues/100276
203+ try {
204+ await this . saveWorkspaceAs ( untitledWorkspace , path ) ;
205+ } finally {
206+ await this . workspacesService . deleteUntitledWorkspace ( untitledWorkspace ) ; // https://github.com/microsoft/vscode/issues/100276
207+ }
205208 } else {
206209 path = untitledWorkspace . configPath ;
207210 }
You can’t perform that action at this time.
0 commit comments