fix compile issues...

This commit is contained in:
Johannes Rieken
2021-06-01 19:30:00 +02:00
parent e8d8e53752
commit 6dbbcc2eee
2 changed files with 1 additions and 2 deletions

View File

@@ -69,7 +69,7 @@ export function activate(context: vscode.ExtensionContext): any {
const task = controller.createNotebookCellExecution(cell);
task.start();
task.replaceOutput([new vscode.NotebookCellOutput([
vscode.NotebookCellOutputItem.text('test output', 'text/html', undefined)
vscode.NotebookCellOutputItem.text('test output', 'text/html')
])]);
task.end({ success: true });
}

View File

@@ -90,7 +90,6 @@ suite('ExtHostTypeConverter', function () {
const dto = NotebookCellOutputItem.from(item);
assert.strictEqual(dto.mime, 'foo/bar');
assert.strictEqual(dto.metadata, undefined);
assert.deepStrictEqual(dto.valueBytes, Array.from(new TextEncoder().encode('Hello')));
const item2 = NotebookCellOutputItem.to(dto);