Skip to content

Commit 368c17e

Browse files
authored
profiles editor feedback (microsoft#226982)
1 parent e81a3a0 commit 368c17e

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

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

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ export class UserDataProfilesEditorModel extends EditorModel {
771771

772772
const activateAction = disposables.add(new Action(
773773
'userDataProfile.activate',
774-
localize('active', "Use for Current Window"),
774+
localize('active', "Use this Profile for Current Window"),
775775
ThemeIcon.asClassName(Codicon.check),
776776
true,
777777
() => this.userDataProfileManagementService.switchProfile(profileElement.profile)
@@ -808,20 +808,10 @@ export class UserDataProfilesEditorModel extends EditorModel {
808808
() => this.openWindow(profileElement.profile)
809809
));
810810

811-
const useAsNewWindowProfileAction = disposables.add(new Action(
812-
'userDataProfile.useAsNewWindowProfile',
813-
localize('use as new window', "Use for New Windows"),
814-
undefined,
815-
true,
816-
() => profileElement.toggleNewWindowProfile()
817-
));
818-
819811
const primaryActions: IAction[] = [];
820812
primaryActions.push(activateAction);
821813
primaryActions.push(newWindowAction);
822814
const secondaryActions: IAction[] = [];
823-
secondaryActions.push(useAsNewWindowProfileAction);
824-
secondaryActions.push(new Separator());
825815
secondaryActions.push(copyFromProfileAction);
826816
secondaryActions.push(exportAction);
827817
if (!profile.isDefault) {
@@ -839,13 +829,6 @@ export class UserDataProfilesEditorModel extends EditorModel {
839829
disposables.add(this.userDataProfileService.onDidChangeCurrentProfile(() =>
840830
activateAction.enabled = this.userDataProfileService.currentProfile.id !== profileElement.profile.id));
841831

842-
useAsNewWindowProfileAction.checked = profileElement.isNewWindowProfile;
843-
disposables.add(profileElement.onDidChange(e => {
844-
if (e.newWindowProfile) {
845-
useAsNewWindowProfileAction.checked = profileElement.isNewWindowProfile;
846-
}
847-
}));
848-
849832
return [profileElement, disposables];
850833
}
851834

0 commit comments

Comments
 (0)