src/vs/base/common/history.ts/HistoryNavigator/_reduceToLimit
class HistoryNavigator:	private _reduceToLimit() {
		const data = this._elements;
		if (data.length > this._limit) {
			this._initialize(data.slice(data.length - this._limit));
		}
	}