// If trying to resolve the sentinel item, load next page
if (index === this.items.length && this._hasNextPage) {
}
// After loading, the requested index should now be valid
Frontier kind: Code frontier
unlabeled · c_ea60ab4ae371
9 tests · 4656 LOC · 23 files · introduces 0 tests · 25 LOC · 1 file
The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.
Introduced files, introduced tests, and structurally relevant concept specialization
In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.
Graph controls are ready.
Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.
Every exact file and test below is linked only from the concept that introduces it.
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/iterativePaging.test|title=IterativePagedModel event fires for each page load|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/iterativePaging.test|title=IterativePagedModel onDidIncrementLength event fires correctly|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/iterativePaging.test|title=IterativePagedModel accessing items after loading all pages|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/iterativePaging.test|title=IterativePagedModel sequential page loads work correctly|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/iterativePaging.test|title=IterativePagedModel load multiple pages|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/iterativePaging.test|title=IterativePagedModel pager with varying page sizes|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/lifecycle.test|title=Lifecycle Action bar has broken accessibility #100273|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/lifecycle.test|title=Lifecycle dispose disposable array|occurrence=1Every collected test enters the hierarchy at exactly one concept.
No tests are introduced at this concept. Its intent tests are introduced by other concepts.
Every collected source range enters the hierarchy at exactly one concept.
1 file ranked by introduced lines: 25 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.
// If trying to resolve the sentinel item, load next page
if (index === this.items.length && this._hasNextPage) {
}
// After loading, the requested index should now be valid
private async loadNextPage(cancellationToken: CancellationToken): Promise<void> {
return;
}
// If already loading, return the cached promise
if (this.loadingPromise) {
await this.loadingPromise;
return;
}
const pagePromise = this.pager.getNextPage(cancellationToken);
this.loadingPromise = pagePromise
.then(page => {
this.items.push(...page.items);
this._hasNextPage = page.hasMore;
// Clear the loading promise before firing the event
// so that event handlers can trigger loading the next page if needed
this.loadingPromise = null;
// Fire length update event
this._onDidIncrementLength.fire(this.length);
}, err => {
this.loadingPromise = null;
throw err;
await this.loadingPromise;
}
dispose(): void {