@@ -716,43 +716,43 @@ export class UserDataProfilesEditorModel extends EditorModel {
716
716
localize ( 'active' , "Use for Current Window" ) ,
717
717
ThemeIcon . asClassName ( Codicon . check ) ,
718
718
true ,
719
- ( ) => this . userDataProfileManagementService . switchProfile ( profile )
719
+ ( ) => this . userDataProfileManagementService . switchProfile ( profileElement . profile )
720
720
) ) ;
721
721
722
722
const copyFromProfileAction = disposables . add ( new Action (
723
723
'userDataProfile.copyFromProfile' ,
724
724
localize ( 'copyFromProfile' , "Duplicate..." ) ,
725
725
ThemeIcon . asClassName ( Codicon . copy ) ,
726
- true , ( ) => this . createNewProfile ( profile )
726
+ true , ( ) => this . createNewProfile ( profileElement . profile )
727
727
) ) ;
728
728
729
729
const exportAction = disposables . add ( new Action (
730
730
'userDataProfile.export' ,
731
731
localize ( 'export' , "Export..." ) ,
732
732
ThemeIcon . asClassName ( Codicon . export ) ,
733
733
true ,
734
- ( ) => this . exportProfile ( profile )
734
+ ( ) => this . exportProfile ( profileElement . profile )
735
735
) ) ;
736
736
737
737
const deleteAction = disposables . add ( new Action (
738
738
'userDataProfile.delete' ,
739
739
localize ( 'delete' , "Delete" ) ,
740
740
ThemeIcon . asClassName ( Codicon . trash ) ,
741
741
true ,
742
- ( ) => this . removeProfile ( profile )
742
+ ( ) => this . removeProfile ( profileElement . profile )
743
743
) ) ;
744
744
745
745
const newWindowAction = disposables . add ( new Action (
746
746
'userDataProfile.newWindow' ,
747
747
localize ( 'open new window' , "Open New Window with this Profile" ) ,
748
748
ThemeIcon . asClassName ( Codicon . emptyWindow ) ,
749
749
true ,
750
- ( ) => this . openWindow ( profile )
750
+ ( ) => this . openWindow ( profileElement . profile )
751
751
) ) ;
752
752
753
753
const useAsNewWindowProfileAction = disposables . add ( new Action (
754
754
'userDataProfile.useAsNewWindowProfile' ,
755
- localize ( 'use as new window' , "Use for New Windows" , profile . name ) ,
755
+ localize ( 'use as new window' , "Use for New Windows" ) ,
756
756
undefined ,
757
757
true ,
758
758
( ) => profileElement . toggleNewWindowProfile ( )
@@ -788,9 +788,9 @@ export class UserDataProfilesEditorModel extends EditorModel {
788
788
[ primaryActions , secondaryActions ]
789
789
) ) ;
790
790
791
- activateAction . checked = this . userDataProfileService . currentProfile . id === profile . id ;
791
+ activateAction . checked = this . userDataProfileService . currentProfile . id === profileElement . profile . id ;
792
792
disposables . add ( this . userDataProfileService . onDidChangeCurrentProfile ( ( ) =>
793
- activateAction . checked = this . userDataProfileService . currentProfile . id === profile . id ) ) ;
793
+ activateAction . checked = this . userDataProfileService . currentProfile . id === profileElement . profile . id ) ) ;
794
794
795
795
useAsNewWindowProfileAction . checked = profileElement . isNewWindowProfile ;
796
796
disposables . add ( profileElement . onDidChange ( e => {
0 commit comments