File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/vs/workbench/contrib/notebook/browser/services Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -306,8 +306,10 @@ class NotebookExecutionListeners extends Disposable {
306
306
if ( kernel ) {
307
307
const implementsInterrupt = kernel . implementsInterrupt ;
308
308
const handlesToCancel = implementsInterrupt ? [ ...executingDeletedHandles ] : [ ...executingDeletedHandles , ...pendingDeletedHandles ] ;
309
- this . _logService . debug ( `NotebookExecution#onWillAddRemoveCells, ${ JSON . stringify ( [ ...handlesToCancel ] ) } ` ) ;
310
- kernel . cancelNotebookCellExecution ( this . _notebookModel . uri , handlesToCancel ) ;
309
+ if ( handlesToCancel . length ) {
310
+ this . _logService . debug ( `NotebookExecution#onWillAddRemoveCells, ${ JSON . stringify ( [ ...handlesToCancel ] ) } ` ) ;
311
+ kernel . cancelNotebookCellExecution ( this . _notebookModel . uri , handlesToCancel ) ;
312
+ }
311
313
}
312
314
}
313
315
}
You can’t perform that action at this time.
0 commit comments