src/vs/workbench/api/common/extHostTask.ts/ExtHostTaskBase/checkDeprecation
class ExtHostTaskBase:	protected checkDeprecation(task: vscode.Task, handler: HandlerData) {
		const tTask = (task as types.Task);
		if (tTask._deprecated) {
			this._deprecationService.report('Task.constructor', handler.extension, 'Use the Task constructor that takes a `scope` instead.');
		}
	}