Skip to content

Commit 3dc8779

Browse files
authored
1 parent 0c021d3 commit 3dc8779

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -579,13 +579,13 @@ export class UserDataProfileImportExportService extends Disposable implements IU
579579
sticky: true,
580580
}, async progress => {
581581
const reportProgress = (message: string) => progress.report({ message: localize('create from profile', "Create Profile: {0}", message) });
582-
const profile = await this.doCreateProfile(profileTemplate, false, false, { useDefaultFlags: options?.useDefaultFlags, icon: options?.icon }, reportProgress);
583-
if (profile) {
582+
const createdProfile = await this.doCreateProfile(profileTemplate, false, false, { useDefaultFlags: options?.useDefaultFlags, icon: options?.icon }, reportProgress);
583+
if (createdProfile) {
584584
reportProgress(localize('progress extensions', "Applying Extensions..."));
585-
await this.instantiationService.createInstance(ExtensionsResource).copy(this.userDataProfileService.currentProfile, profile, false);
585+
await this.instantiationService.createInstance(ExtensionsResource).copy(profile, createdProfile, false);
586586

587587
reportProgress(localize('switching profile', "Switching Profile..."));
588-
await this.userDataProfileManagementService.switchProfile(profile);
588+
await this.userDataProfileManagementService.switchProfile(createdProfile);
589589
}
590590
});
591591
} finally {

0 commit comments

Comments
 (0)