File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/vs/workbench/services/userDataProfile/browser Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,10 @@ export class UserDataProfileManagementService extends Disposable implements IUse
119
119
120
120
if ( ! isRemoteWindow ) {
121
121
if ( ! ( await this . extensionService . stopExtensionHosts ( localize ( 'switch profile' , "Switching to a profile." ) ) ) ) {
122
+ // If extension host did not stop, do not switch profile
123
+ if ( this . userDataProfilesService . profiles . some ( p => p . id === this . userDataProfileService . currentProfile . id ) ) {
124
+ await this . userDataProfilesService . setProfileForWorkspace ( toWorkspaceIdentifier ( this . workspaceContextService . getWorkspace ( ) ) , this . userDataProfileService . currentProfile ) ;
125
+ }
122
126
throw new CancellationError ( ) ;
123
127
}
124
128
}
You can’t perform that action at this time.
0 commit comments