From bb64bcbd1760ff76c9a9935db93626eb4ce6f3d5 Mon Sep 17 00:00:00 2001 From: Don Jayamanne Date: Fri, 18 Mar 2022 01:17:17 +1100 Subject: [PATCH] Misc --- src/kernels/kernel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kernels/kernel.ts b/src/kernels/kernel.ts index 733d19c0c21..c0041a4d0bf 100644 --- a/src/kernels/kernel.ts +++ b/src/kernels/kernel.ts @@ -387,9 +387,9 @@ export class Kernel implements IKernel { await this.restarting.promise; } if (!this._notebookPromise) { - traceInfoIfCI(`Create new cancellation token for ${getDisplayPath(this.notebookDocument.uri)}`); // Don't create a new one unnecessarily. if (this.startCancellation.token.isCancellationRequested) { + traceInfoIfCI(`Create new cancellation token for ${getDisplayPath(this.notebookDocument.uri)}`); this.startCancellation = new CancellationTokenSource(); } this._notebookPromise = this.createNotebook(new StopWatch()).catch((ex) => {