mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
Fix save error
This commit is contained in:
parent
7f43ac34a1
commit
754b1defb0
|
@ -370,7 +370,7 @@ function convertStreamOutput(output: NotebookCellOutput): JupyterOutput {
|
|||
const outputs = output.items
|
||||
.filter((opit) => opit.mime === CellOutputMimeTypes.stderr || opit.mime === CellOutputMimeTypes.stdout)
|
||||
.map((opit) => convertOutputMimeToJupyterOutput(opit.mime, opit.data as Uint8Array) as string)
|
||||
.reduceRight<string[]>((prev, curr) => (Array.isArray(curr) ? prev.concat(...curr) : prev.concat(curr)), []);
|
||||
.reduceRight<string[]>((prev, curr) => prev.concat(curr), []);
|
||||
|
||||
const streamType = getOutputStreamType(output) || 'stdout';
|
||||
|
||||
|
|
Loading…
Reference in a new issue