Skip to content

Commit 5588a85

Browse files
authored
Merge pull request microsoft#166512 from amunger/integrationTest
Don't rely on notebook focus when adding cells
2 parents 0b32e51 + 2deaa43 commit 5588a85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/vscode-api-tests/src/singlefolder-tests/interactiveWindow.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async function addCell(code: string, notebook: vscode.NotebookDocument) {
3636
async function addCellAndRun(code: string, notebook: vscode.NotebookDocument, i: number) {
3737
const cell = await addCell(code, notebook);
3838
const event = asPromise(vscode.workspace.onDidChangeNotebookDocument);
39-
await vscode.commands.executeCommand('notebook.cell.execute', { start: i, end: i + 1 });
39+
await vscode.commands.executeCommand('notebook.cell.execute', { start: i, end: i + 1 }, notebook.uri);
4040
await event;
4141
assert.strictEqual(cell.outputs.length, 1, 'execute failed');
4242
return cell;

0 commit comments

Comments
 (0)