Revert "Comment out notebook compile error"

This reverts commit 7bcec04426.
This commit is contained in:
Daniel Imms
2021-03-09 06:49:10 -08:00
parent 7bcec04426
commit e7b0596d89

View File

@@ -427,11 +427,11 @@ suite('Notebook API tests', function () {
assert.strictEqual(vscode.window.activeNotebookEditor?.document.cells[0].language, 'typescript');
assert.strictEqual(vscode.window.activeNotebookEditor?.document.cells[0].cellKind, vscode.NotebookCellKind.Code);
// await withEvent(vscode.notebook.onDidChangeCellLanguage, async event => {
// await vscode.commands.executeCommand('notebook.cell.changeLanguage', { start: 0, end: 1 }, 'javascript');
// await event;
// assert.strictEqual(vscode.window.activeNotebookEditor?.document.cells[0].language, 'javascript');
// });
await withEvent(vscode.notebook.onDidChangeCellLanguage, async event => {
await vscode.commands.executeCommand('notebook.cell.changeLanguage', { start: 0, end: 1 }, 'javascript');
await event;
assert.strictEqual(vscode.window.activeNotebookEditor?.document.cells[0].language, 'javascript');
});
// switch to markdown will change the cell kind
await withEvent(vscode.notebook.onDidChangeNotebookCells, async event => {