mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
label output indexes if more than one
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user