src/vs/workbench/api/common/extHostExtensionService.ts/AbstractExtHostExtensionService/$activateByEvent
class AbstractExtHostExtensionService:	public $activateByEvent(activationEvent: string, activationKind: ActivationKind): Promise<void> {
		if (activationKind === ActivationKind.Immediate) {
			return this._activateByEvent(activationEvent, false);
		}

		return (
			this._readyToRunExtensions.wait()
				.then(_ => this._activateByEvent(activationEvent, false))
		);
	}