mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 16:49:06 +01:00
hook up execution task cancellation from controllers
This commit is contained in:
@@ -223,6 +223,16 @@ export class ExtHostNotebookKernels implements ExtHostNotebookKernelsShape {
|
||||
if (obj.controller.interruptHandler) {
|
||||
obj.controller.interruptHandler(document.notebookDocument);
|
||||
}
|
||||
|
||||
// we do both? interrupt and cancellation or should we be selective?
|
||||
for (const range of ranges) {
|
||||
for (let i = range.start; i < range.end; i++) {
|
||||
const cell = document.getCellFromIndex(i);
|
||||
if (cell) {
|
||||
this._extHostNotebook.cancelOneNotebookCellExecution(cell);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$acceptRendererMessage(handle: number, editorId: string, message: any): void {
|
||||
|
||||
Reference in New Issue
Block a user