Merge branch 'notebook/dev' into main

This commit is contained in:
rebornix
2021-05-04 15:31:11 -07:00
14 changed files with 747 additions and 605 deletions

View File

@@ -804,12 +804,12 @@ suite('Notebook API tests', function () {
};
const resource = await createRandomNotebookFile();
await vscode.commands.executeCommand('vscode.openWith', resource, 'notebookCoreTest');
const editor = vscode.window.activeNotebookEditor!;
const editor = await vscode.window.showNotebookDocument(resource);
const cell = editor.document.cellAt(0);
await assertKernel(cancelableKernel.controller);
await withEvent<vscode.NotebookCellOutputsChangeEvent>(vscode.notebook.onDidChangeCellOutputs, async (event) => {
assert.ok(editor === vscode.window.activeNotebookEditor);
await vscode.commands.executeCommand('notebook.cell.execute');
await vscode.commands.executeCommand('notebook.cell.cancelExecution');
await event;