Accept single outputs or arrays in execution task output edit methods

Fix #119601
This commit is contained in:
Rob Lourens
2021-03-24 17:46:50 -07:00
parent 75ed057885
commit 1a425eacb8
3 changed files with 8 additions and 6 deletions

View File

@@ -68,9 +68,9 @@ const kernel1 = new class implements vscode.NotebookKernel {
}
task.start();
await task.replaceOutput([new vscode.NotebookCellOutput([
await task.replaceOutput(new vscode.NotebookCellOutput([
new vscode.NotebookCellOutputItem('text/plain', ['my output'], undefined)
])]);
]));
task.end({ success: true });
return;
}