src/vs/base/common/arrays.ts/CallbackIterable/toArray
class CallbackIterable:	toArray(): T[] {
		const result: T[] = [];
		this.iterate(item => { result.push(item); return true; });
		return result;
	}