mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 16:18:58 +01:00
Merge branch 'notebook/dev' into main
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user