add notebook instance to interrupt handler, https://github.com/microsoft/vscode/issues/121912

This commit is contained in:
Johannes Rieken
2021-04-22 14:17:04 +02:00
parent 1df9d8902c
commit 12741ed7d8
2 changed files with 5 additions and 2 deletions

View File

@@ -233,7 +233,7 @@ export class ExtHostNotebookKernels implements ExtHostNotebookKernelsShape {
throw new Error('MISSING notebook');
}
if (obj.controller.interruptHandler) {
await obj.controller.interruptHandler.call(obj.controller);
await obj.controller.interruptHandler.call(obj.controller, document.apiNotebook);
}
// we do both? interrupt and cancellation or should we be selective?