Skip to content

Commit eb7ed2b

Browse files
committed
label output indexes if more than one
1 parent cc6ee0e commit eb7ed2b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/vs/workbench/contrib/notebook/browser/notebook.contribution.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -728,8 +728,10 @@ class NotebookAccessibleViewContribution extends Disposable {
728728
} else {
729729
text = decoder.decode(pickedBuffer);
730730
}
731-
732-
outputContent = outputContent.concat(`${text}\n`);
731+
const index = viewCell.outputsViewModels.length > 1
732+
? `Cell output ${i + 1} of ${viewCell.outputsViewModels.length}\n`
733+
: '';
734+
outputContent = outputContent.concat(`${index}${text}\n`);
733735
}
734736

735737
if (!outputContent) {

0 commit comments

Comments
 (0)