mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 00:28:52 +01:00
Accept single outputs or arrays in execution task output edit methods
Fix #119601
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user