Skip to content

Commit 968d631

Browse files
authored
1 parent 268f349 commit 968d631

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,18 +186,20 @@ export class UserDataProfilesWorkbenchContribution extends Disposable implements
186186
const that = this;
187187
return registerAction2(class RenameCurrentProfileAction extends Action2 {
188188
constructor() {
189+
const when = ContextKeyExpr.and(ContextKeyExpr.notEquals(CURRENT_PROFILE_CONTEXT.key, that.userDataProfilesService.defaultProfile.id), IS_CURRENT_PROFILE_TRANSIENT_CONTEXT.toNegated());
189190
super({
190191
id: `workbench.profiles.actions.editCurrentProfile`,
191192
title: {
192193
value: localize('edit profile', "Edit Profile..."),
193194
original: `Edit Profile...`
194195
},
196+
precondition: when,
195197
f1: true,
196198
menu: [
197199
{
198200
id: ProfilesMenu,
199201
group: '2_manage_current',
200-
when: ContextKeyExpr.and(ContextKeyExpr.notEquals(CURRENT_PROFILE_CONTEXT.key, that.userDataProfilesService.defaultProfile.id), IS_CURRENT_PROFILE_TRANSIENT_CONTEXT.toNegated()),
202+
when,
201203
order: 2
202204
}
203205
]

0 commit comments

Comments
 (0)