@@ -145,8 +145,13 @@ const group: IJSONSchema = {
145
145
const taskType : IJSONSchema = {
146
146
type : 'string' ,
147
147
enum : [ 'shell' , 'process' ] ,
148
- default : 'process' ,
149
- description : nls . localize ( 'JsonSchema.tasks.type' , 'Defines whether the task is run as a process or as a command inside a shell. Default is process.' )
148
+ default : 'shell' ,
149
+ description : nls . localize ( 'JsonSchema.tasks.type' , 'Defines whether the task is run as a process or as a command inside a shell.' )
150
+ } ;
151
+
152
+ const label : IJSONSchema = {
153
+ type : 'string' ,
154
+ description : nls . localize ( 'JsonSchema.tasks.label' , "The task's user interface label" )
150
155
} ;
151
156
152
157
const version : IJSONSchema = {
@@ -224,13 +229,25 @@ taskDefinitions.push(customize);
224
229
225
230
let definitions = Objects . deepClone ( commonSchema . definitions ) ;
226
231
let taskDescription : IJSONSchema = definitions . taskDescription ;
232
+ taskDescription . required = [ 'label' , 'type' ] ;
233
+ taskDescription . properties . label = Objects . deepClone ( label ) ;
227
234
taskDescription . properties . isShellCommand = Objects . deepClone ( shellCommand ) ;
228
235
taskDescription . properties . dependsOn = dependsOn ;
229
236
taskDescription . properties . identifier = Objects . deepClone ( identifier ) ;
230
237
taskDescription . properties . type = Objects . deepClone ( taskType ) ;
231
238
taskDescription . properties . presentation = Objects . deepClone ( presentation ) ;
232
239
taskDescription . properties . terminal = terminal ;
233
240
taskDescription . properties . group = Objects . deepClone ( group ) ;
241
+ taskDescription . properties . taskName . deprecationMessage = nls . localize (
242
+ 'JsonSchema.tasks.taskName.deprecated' ,
243
+ 'The task\'s name property is deprecated. Use the label property instead.'
244
+ ) ;
245
+ taskDescription . default = {
246
+ label : 'My Task' ,
247
+ type : 'shell' ,
248
+ command : 'echo Hello' ,
249
+ problemMatcher : [ ]
250
+ } ;
234
251
definitions . showOutputType . deprecationMessage = nls . localize (
235
252
'JsonSchema.tasks.showOputput.deprecated' ,
236
253
'The property showOutput is deprecated. Use the reveal property inside the presentation property instead. See also the 1.14 release notes.'
0 commit comments