1566
namespace CustomTask {
1567
export function from(this: void, external: ICustomTask, context: IParseContext, index: number, source: TaskConfigSource): Tasks.CustomTask | undefined {
1569
return undefined;
1570
}
1572
>
if (type === undefined || type === null) {
1573
type = Tasks.CUSTOMIZED_TASK_TYPE;
1574
}
1575
>
if (type !== Tasks.CUSTOMIZED_TASK_TYPE && type !== 'shell' && type !== 'process') {
taskConfiguration.ts
1576
context.problemReporter.error(nls.localize('ConfigurationParser.notCustom', 'Error: tasks is not declared as a custom task. The configuration will be ignored.\n{0}\n', JSON.stringify(external, null, 4)));
1577
return undefined;
1578
}
1580
>
if (Types.isString(external.label) && context.schemaVersion === Tasks.JsonSchemaVersion.V2_0_0) {
1581
taskName = external.label;
1582
}
1584
context.problemReporter.error(nls.localize('ConfigurationParser.noTaskName', 'Error: a task must provide a label property. The task will be ignored.\n{0}\n', JSON.stringify(external, null, 4)));
1585
return undefined;