File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/vs/workbench/contrib/userDataProfile/browser Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,6 @@ export class UserDataProfilesWorkbenchContribution extends Disposable implements
118
118
id : `workbench.profiles.actions.profileEntry.${ profile . id } ` ,
119
119
title : profile . name ,
120
120
toggled : ContextKeyExpr . equals ( CONTEXT_CURRENT_PROFILE . key , profile . id ) ,
121
- precondition : ContextKeyExpr . notEquals ( CONTEXT_CURRENT_PROFILE . key , profile . id ) ,
122
121
menu : [
123
122
{
124
123
id : ManageProfilesSubMenu ,
@@ -129,7 +128,9 @@ export class UserDataProfilesWorkbenchContribution extends Disposable implements
129
128
} ) ;
130
129
}
131
130
async run ( accessor : ServicesAccessor ) {
132
- return that . userDataProfileManagementService . switchProfile ( profile ) ;
131
+ if ( that . userDataProfileService . currentProfile . id !== profile . id ) {
132
+ return that . userDataProfileManagementService . switchProfile ( profile ) ;
133
+ }
133
134
}
134
135
} ) ;
135
136
}
You can’t perform that action at this time.
0 commit comments