createChild(services: ServiceCollection, store?: DisposableStore): IInstantiationService {
const that = this;
const result = new class extends InstantiationService {
override dispose(): void {
that._children.delete(result);
super.dispose();
}
this._children.add(result);
store?.add(result);
return result;
}
invokeFunction<R, TS extends any[] = []>(fn: (accessor: ServicesAccessor, ...args: TS) => R, ...args: TS): R {