This commit is contained in:
parent
5688d75ef9
commit
8420e94d8d
2 changed files with 3 additions and 3 deletions
|
@ -59,7 +59,7 @@ suite('NotebookEditorKernelManager', () => {
|
|||
await withTestNotebook(
|
||||
[],
|
||||
async (viewModel) => {
|
||||
const kernelManager = instantiationService.createInstance(NotebookEditorKernelManager, { activeKernel: undefined, viewModel });
|
||||
const kernelManager = instantiationService.createInstance(NotebookEditorKernelManager);
|
||||
|
||||
const cell = viewModel.createCell(1, 'var c = 3', 'javascript', CellKind.Code, {}, [], true);
|
||||
await assertThrowsAsync(async () => await kernelManager.executeNotebookCell(cell));
|
||||
|
|
|
@ -140,7 +140,7 @@ suite('NotebookKernelService', () => {
|
|||
{
|
||||
// open as jupyter -> bind event
|
||||
const p1 = Event.toPromise(kernelService.onDidChangeNotebookKernelBinding);
|
||||
const d1 = instantiationService.createInstance(NotebookTextModel, jupyter.viewType, jupyter.uri, [], {});
|
||||
const d1 = instantiationService.createInstance(NotebookTextModel, jupyter.viewType, jupyter.uri, [], {}, {});
|
||||
onDidAddNotebookDocument.fire(d1);
|
||||
const event = await p1;
|
||||
assert.strictEqual(event.newKernel, jupyterKernel.id);
|
||||
|
@ -148,7 +148,7 @@ suite('NotebookKernelService', () => {
|
|||
{
|
||||
// RE-open as dotnet -> bind event
|
||||
const p2 = Event.toPromise(kernelService.onDidChangeNotebookKernelBinding);
|
||||
const d2 = instantiationService.createInstance(NotebookTextModel, dotnet.viewType, dotnet.uri, [], {});
|
||||
const d2 = instantiationService.createInstance(NotebookTextModel, dotnet.viewType, dotnet.uri, [], {}, {});
|
||||
onDidAddNotebookDocument.fire(d2);
|
||||
const event2 = await p2;
|
||||
assert.strictEqual(event2.newKernel, dotnetKernel.id);
|
||||
|
|
Loading…
Reference in a new issue