src/vs/base/common/arrays.ts/ArrayQueue/takeCount
class ArrayQueue:	takeCount(count: number): T[] {
		const result = this.items.slice(this.firstIdx, this.firstIdx + count);
		this.firstIdx += count;
		return result;
	}