806
807
constructor(
809
>
seqAllocator: () => number,
810
>
log: (msg: string) => void,
811
>
subscribe: (resource: URI) => Promise<IStateSnapshot>,
812
>
unsubscribe: (resource: URI) => void,
813
>
) {
814
>
super();
815
>
this._clientId = clientId;
816
>
this._seqAllocator = seqAllocator;
817
>
this._log = log;
818
>
this._subscribe = subscribe;
819
>
this._unsubscribe = unsubscribe;
820
>
this._rootState = this._register(new RootStateSubscription(clientId, log));
821
>
}
822
823
/** The always-live root state subscription. */