Move log message outside of 'if' block so I have confirmation that smoething happened

This commit is contained in:
Rob Lourens 2022-10-26 11:29:35 -07:00
parent 9c802415e1
commit f45dffcd1f
No known key found for this signature in database
GPG key ID: A2793C9B3199B7EF

View file

@ -306,8 +306,8 @@ class NotebookExecutionListeners extends Disposable {
if (kernel) {
const implementsInterrupt = kernel.implementsInterrupt;
const handlesToCancel = implementsInterrupt ? [...executingDeletedHandles] : [...executingDeletedHandles, ...pendingDeletedHandles];
this._logService.debug(`NotebookExecution#onWillAddRemoveCells, ${JSON.stringify([...handlesToCancel])}`);
if (handlesToCancel.length) {
this._logService.debug(`NotebookExecution#onWillAddRemoveCells, ${JSON.stringify([...handlesToCancel])}`);
kernel.cancelNotebookCellExecution(this._notebookModel.uri, handlesToCancel);
}
}