fix(combined-diff): load up to three diff sections at once (STA-12716) (#38265)

Load up to three combined-diff sections at once instead of one (STA-12716).
This commit is contained in:
Jinwoo Hong
2026-11-04 23:30:59 -05:00
committed by GitHub
parent 82585c11dc
commit a6e5b5bd41
@@ -12,8 +12,7 @@ export function createCombinedDiffLoadScheduler({
getRenderedIndices,
isSectionExpanded = () => true,
schedule = (callback) => queueMicrotask(callback),
// Section completion mounts Monaco; serialize by default to avoid stacking large-diff render work.
maxConcurrent = 1
maxConcurrent = 3
}: {
loadSection: (index: number) => Promise<void>
getRenderedIndices?: () => ReadonlySet<number>