Skip to content

Commit 67ce925

Browse files
authored
Merge pull request microsoft#188998 from microsoft/aamunger/streamingOutput
missed case of compression
2 parents b9dbd1b + 780ee86 commit 67ce925

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/vs/workbench/contrib/notebook/common/notebookCommon.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,8 +1012,10 @@ export function compressOutputItemStreams(outputs: Uint8Array[]) {
10121012
}
10131013
}
10141014

1015-
const didCompression = compressStreamBuffer(buffers);
1016-
const data = formatStreamText(VSBuffer.concat(buffers.map(buffer => VSBuffer.wrap(buffer))));
1015+
let didCompression = compressStreamBuffer(buffers);
1016+
const concatenated = VSBuffer.concat(buffers.map(buffer => VSBuffer.wrap(buffer)));
1017+
const data = formatStreamText(concatenated);
1018+
didCompression = didCompression || data.byteLength !== concatenated.byteLength;
10171019
return { data, didCompression };
10181020
}
10191021

0 commit comments

Comments
 (0)