label output indexes if more than one

This commit is contained in:
aamunger
2023-07-19 11:41:51 -07:00
parent cc6ee0efd5
commit eb7ed2b2aa
@@ -728,8 +728,10 @@ class NotebookAccessibleViewContribution extends Disposable {
} else {
text = decoder.decode(pickedBuffer);
}
outputContent = outputContent.concat(`${text}\n`);
const index = viewCell.outputsViewModels.length > 1
? `Cell output ${i + 1} of ${viewCell.outputsViewModels.length}\n`
: '';
outputContent = outputContent.concat(`${index}${text}\n`);
}
if (!outputContent) {