@@ -141,31 +141,38 @@ registerAction2(class CreateProfileAction extends Action2 {
141
141
} , {
142
142
id : CreateEmptyProfileAction . ID ,
143
143
label : CreateEmptyProfileAction . TITLE . value ,
144
+ } , {
145
+ id : CreateTransientProfileAction . ID ,
146
+ label : CreateTransientProfileAction . TITLE . value ,
144
147
} ] , { hideInput : true , canPickMany : false , title : localize ( 'create settings profile' , "{0}: Create..." , PROFILES_CATEGORY ) } ) ;
145
148
if ( pick ) {
146
149
return commandService . executeCommand ( pick . id ) ;
147
150
}
148
151
}
149
152
} ) ;
150
153
151
- registerAction2 ( class CreateTransientProfileAction extends Action2 {
154
+ class CreateTransientProfileAction extends Action2 {
155
+ static readonly ID = 'workbench.profiles.actions.createTemporaryProfile' ;
156
+ static readonly TITLE = {
157
+ value : localize ( 'create temporary profile' , "Create a Temporary Settings Profile" ) ,
158
+ original : 'Create a Temporary Settings Profile'
159
+ } ;
152
160
constructor ( ) {
153
161
super ( {
154
- id : 'workbench.profiles.actions.createTemporaryProfile' ,
155
- title : {
156
- value : localize ( 'create temporary profile' , "Create a Temporary Settings Profile" ) ,
157
- original : 'Create a Temporary Settings Profile'
158
- } ,
162
+ id : CreateTransientProfileAction . ID ,
163
+ title : CreateTransientProfileAction . TITLE ,
159
164
category : PROFILES_CATEGORY ,
160
165
f1 : true ,
161
- precondition : PROFILES_ENABLEMENT_CONTEXT
166
+ precondition : PROFILES_ENABLEMENT_CONTEXT ,
162
167
} ) ;
163
168
}
164
169
165
170
async run ( accessor : ServicesAccessor ) {
166
171
return accessor . get ( IUserDataProfileManagementService ) . createAndEnterTransientProfile ( ) ;
167
172
}
168
- } ) ;
173
+ }
174
+
175
+ registerAction2 ( CreateTransientProfileAction ) ;
169
176
170
177
export class RenameProfileAction extends Action2 {
171
178
static readonly ID = 'workbench.profiles.actions.renameProfile' ;
0 commit comments