Skip to content

Commit 2e3a1d8

Browse files
authored
1 parent 9e9eb5e commit 2e3a1d8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/vs/workbench/contrib/userDataProfile/browser/userDataProfilesEditorModel.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -716,43 +716,43 @@ export class UserDataProfilesEditorModel extends EditorModel {
716716
localize('active', "Use for Current Window"),
717717
ThemeIcon.asClassName(Codicon.check),
718718
true,
719-
() => this.userDataProfileManagementService.switchProfile(profile)
719+
() => this.userDataProfileManagementService.switchProfile(profileElement.profile)
720720
));
721721

722722
const copyFromProfileAction = disposables.add(new Action(
723723
'userDataProfile.copyFromProfile',
724724
localize('copyFromProfile', "Duplicate..."),
725725
ThemeIcon.asClassName(Codicon.copy),
726-
true, () => this.createNewProfile(profile)
726+
true, () => this.createNewProfile(profileElement.profile)
727727
));
728728

729729
const exportAction = disposables.add(new Action(
730730
'userDataProfile.export',
731731
localize('export', "Export..."),
732732
ThemeIcon.asClassName(Codicon.export),
733733
true,
734-
() => this.exportProfile(profile)
734+
() => this.exportProfile(profileElement.profile)
735735
));
736736

737737
const deleteAction = disposables.add(new Action(
738738
'userDataProfile.delete',
739739
localize('delete', "Delete"),
740740
ThemeIcon.asClassName(Codicon.trash),
741741
true,
742-
() => this.removeProfile(profile)
742+
() => this.removeProfile(profileElement.profile)
743743
));
744744

745745
const newWindowAction = disposables.add(new Action(
746746
'userDataProfile.newWindow',
747747
localize('open new window', "Open New Window with this Profile"),
748748
ThemeIcon.asClassName(Codicon.emptyWindow),
749749
true,
750-
() => this.openWindow(profile)
750+
() => this.openWindow(profileElement.profile)
751751
));
752752

753753
const useAsNewWindowProfileAction = disposables.add(new Action(
754754
'userDataProfile.useAsNewWindowProfile',
755-
localize('use as new window', "Use for New Windows", profile.name),
755+
localize('use as new window', "Use for New Windows"),
756756
undefined,
757757
true,
758758
() => profileElement.toggleNewWindowProfile()
@@ -788,9 +788,9 @@ export class UserDataProfilesEditorModel extends EditorModel {
788788
[primaryActions, secondaryActions]
789789
));
790790

791-
activateAction.checked = this.userDataProfileService.currentProfile.id === profile.id;
791+
activateAction.checked = this.userDataProfileService.currentProfile.id === profileElement.profile.id;
792792
disposables.add(this.userDataProfileService.onDidChangeCurrentProfile(() =>
793-
activateAction.checked = this.userDataProfileService.currentProfile.id === profile.id));
793+
activateAction.checked = this.userDataProfileService.currentProfile.id === profileElement.profile.id));
794794

795795
useAsNewWindowProfileAction.checked = profileElement.isNewWindowProfile;
796796
disposables.add(profileElement.onDidChange(e => {

0 commit comments

Comments
 (0)