in jetbrains-core/src/software/aws/toolkits/jetbrains/services/s3/editor/S3TreeNode.kt [65:79]
fun loadMore(continuationMarker: T) {
synchronized(childrenLock) {
// dedupe calls
if (loadedPages.contains(continuationMarker)) {
return
}
val more = loadObjects(continuationMarker)
// Only say it has loaded before if it loaded successfully
if (more.none { it is S3TreeErrorNode || it is S3TreeErrorContinuationNode<*> }) {
loadedPages.add(continuationMarker)
}
cachedList = children.dropLastWhile { it is S3TreeContinuationNode<*> || it is S3TreeErrorNode } + more
}
}