src/vs/workbench/contrib/tasks/browser/abstractTaskService.ts/AbstractTaskService/_activateTaskProviders
class AbstractTaskService:	private async _activateTaskProviders(type: string | undefined): Promise<void> {
		// We need to first wait for extensions to be registered because we might read
		// the `TaskDefinitionRegistry` in case `type` is `undefined`
		await this.extensionService.whenInstalledExtensionsRegistered();

		await Promise.all(
			this._getActivationEvents(type).map(activationEvent => this.extensionService.activateByEvent(activationEvent))
		);
	}