Skip to content

Commit 82b4f2b

Browse files
committed
make error output legible
1 parent eb7ed2b commit 82b4f2b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,9 @@ class NotebookAccessibleViewContribution extends Disposable {
731731
const index = viewCell.outputsViewModels.length > 1
732732
? `Cell output ${i + 1} of ${viewCell.outputsViewModels.length}\n`
733733
: '';
734+
if (mimeType.endsWith('error')) {
735+
text = text.replace(/\\u001b\[[0-9;]*m/gi, '').replace('\\n', '\\\n');
736+
}
734737
outputContent = outputContent.concat(`${index}${text}\n`);
735738
}
736739

0 commit comments

Comments
 (0)