src/vs/workbench/contrib/tasks/browser/abstractTaskService.ts/AbstractTaskService/_getTypeForTask
class AbstractTaskService:	private _getTypeForTask(task: Task): string {
		let type: string;
		if (CustomTask.is(task)) {
			const configProperties: TaskConfig.IConfigurationProperties = task._source.config.element;
			type = (<any>configProperties).type;
		} else {
			type = task.getDefinition()!.type;
		}
		return type;
	}