True iff the extension has been activated this session.
All activation events at least one extension is registered for.
All currently-registered extension ids.
Subscribe a listener that runs when an extension should be activated. Listeners are invoked sequentially per extension so the caller can rely on awaiting completion before the next listener runs. Returns an unsubscribe function.
Register an extension with its activation events. Replaces any previous registration for the same id.
Reset the "already activated" flag — used by tests and on flavor switch.
OptionalextensionId: string
Fire an activation event. Returns the list of extension ids that were activated by this fire (in deterministic order). Re-firing the same event activates only the not-yet-activated extensions tied to it.