Fix test to pass

This commit is contained in:
Rich Chiodo
2022-05-24 10:13:04 -07:00
parent 5d8bd23756
commit 9322fd543d
2 changed files with 3 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ async function createInteractiveWindow(kernel: Kernel) {
setup(async function () {
// there should be ONE default kernel in this suite
defaultKernel = new Kernel('mainKernel', 'Notebook Default Kernel');
defaultKernel = new Kernel('mainKernel', 'Notebook Default Kernel', 'interactive');
testDisposables.push(defaultKernel.controller);
await saveAllFilesAndCloseAll();
});

View File

@@ -35,8 +35,8 @@ export class Kernel {
readonly associatedNotebooks = new Set<string>();
constructor(id: string, label: string) {
this.controller = vscode.notebooks.createNotebookController(id, 'notebookCoreTest', label);
constructor(id: string, label: string, viewType: string = 'notebookCoreTest') {
this.controller = vscode.notebooks.createNotebookController(id, viewType, label);
this.controller.executeHandler = this._execute.bind(this);
this.controller.supportsExecutionOrder = true;
this.controller.supportedLanguages = ['typescript', 'javascript'];