We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b9dbd1b + 780ee86 commit 67ce925Copy full SHA for 67ce925
src/vs/workbench/contrib/notebook/common/notebookCommon.ts
@@ -1012,8 +1012,10 @@ export function compressOutputItemStreams(outputs: Uint8Array[]) {
1012
}
1013
1014
1015
- const didCompression = compressStreamBuffer(buffers);
1016
- const data = formatStreamText(VSBuffer.concat(buffers.map(buffer => VSBuffer.wrap(buffer))));
+ let didCompression = compressStreamBuffer(buffers);
+ const concatenated = VSBuffer.concat(buffers.map(buffer => VSBuffer.wrap(buffer)));
1017
+ const data = formatStreamText(concatenated);
1018
+ didCompression = didCompression || data.byteLength !== concatenated.byteLength;
1019
return { data, didCompression };
1020
1021
0 commit comments