File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/vs/workbench/contrib/userDataProfile/browser Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,12 @@ import { Categories } from '../../../../platform/action/common/actionCommonCateg
8
8
import { Action2 , registerAction2 } from '../../../../platform/actions/common/actions.js' ;
9
9
import { ServicesAccessor } from '../../../../platform/instantiation/common/instantiation.js' ;
10
10
import { IUserDataProfilesService } from '../../../../platform/userDataProfile/common/userDataProfile.js' ;
11
- import { IUserDataProfileManagementService , PROFILES_CATEGORY } from '../../../services/userDataProfile/common/userDataProfile.js' ;
11
+ import { IHostService } from '../../../services/host/browser/host.js' ;
12
+ import { PROFILES_CATEGORY } from '../../../services/userDataProfile/common/userDataProfile.js' ;
12
13
13
14
class CreateTransientProfileAction extends Action2 {
14
15
static readonly ID = 'workbench.profiles.actions.createTemporaryProfile' ;
15
- static readonly TITLE = localize2 ( 'create temporary profile' , "Create a Temporary Profile" ) ;
16
+ static readonly TITLE = localize2 ( 'create temporary profile' , "New Window with Temporary Profile" ) ;
16
17
constructor ( ) {
17
18
super ( {
18
19
id : CreateTransientProfileAction . ID ,
@@ -23,7 +24,7 @@ class CreateTransientProfileAction extends Action2 {
23
24
}
24
25
25
26
async run ( accessor : ServicesAccessor ) {
26
- return accessor . get ( IUserDataProfileManagementService ) . createAndEnterTransientProfile ( ) ;
27
+ accessor . get ( IHostService ) . openWindow ( { forceTempProfile : true } ) ;
27
28
}
28
29
}
29
30
You can’t perform that action at this time.
0 commit comments