File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/vs/workbench/services/userDataProfile/browser Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 3
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
4
*--------------------------------------------------------------------------------------------*/
5
5
6
+ import { CancellationError } from 'vs/base/common/errors' ;
6
7
import { Disposable } from 'vs/base/common/lifecycle' ;
7
8
import { localize } from 'vs/nls' ;
8
9
import { IDialogService } from 'vs/platform/dialogs/common/dialogs' ;
@@ -117,7 +118,9 @@ export class UserDataProfileManagementService extends Disposable implements IUse
117
118
const isRemoteWindow = ! ! this . environmentService . remoteAuthority ;
118
119
119
120
if ( ! isRemoteWindow ) {
120
- this . extensionService . stopExtensionHosts ( true ) ; // TODO@sandy 081 adopt support for extension host to veto stopping
121
+ if ( ! ( await this . extensionService . stopExtensionHosts ( localize ( 'switch profile' , "Switching Profile" ) ) ) ) {
122
+ throw new CancellationError ( ) ;
123
+ }
121
124
}
122
125
123
126
// In a remote window update current profile before reloading so that data is preserved from current profile if asked to preserve
You can’t perform that action at this time.
0 commit comments