mirror of
https://github.com/Microsoft/vscode
synced 2024-08-25 03:56:03 +00:00
decode output item buffer.
This commit is contained in:
parent
955a1aca9a
commit
02b5104e37
|
@ -377,7 +377,13 @@ class CellInfoContentProvider {
|
|||
|
||||
for (const cell of ref.object.notebook.cells) {
|
||||
if (cell.handle === data.handle) {
|
||||
const content = JSON.stringify(cell.outputs);
|
||||
const content = JSON.stringify(cell.outputs.map(output => ({
|
||||
metadata: output.metadata,
|
||||
outputItems: output.outputs.map(opit => ({
|
||||
mimeType: opit.mime,
|
||||
data: new TextDecoder().decode(opit.data)
|
||||
}))
|
||||
})));
|
||||
const edits = format(content, undefined, {});
|
||||
const outputSource = applyEdits(content, edits);
|
||||
result = this._modelService.createModel(
|
||||
|
|
Loading…
Reference in a new issue