diff --git a/src/vs/workbench/contrib/notebook/browser/contrib/kernelDetection/notebookKernelDetection.ts b/src/vs/workbench/contrib/notebook/browser/contrib/kernelDetection/notebookKernelDetection.ts index 7d6ff757c83..03254dd3980 100644 --- a/src/vs/workbench/contrib/notebook/browser/contrib/kernelDetection/notebookKernelDetection.ts +++ b/src/vs/workbench/contrib/notebook/browser/contrib/kernelDetection/notebookKernelDetection.ts @@ -58,7 +58,7 @@ class NotebookKernelDetection extends Disposable implements IWorkbenchContributi } }); - if (shouldStartDetection) { + if (shouldStartDetection && !this._detectionMap.has(notebookType)) { const task = this._notebookKernelService.registerNotebookKernelDetectionTask({ notebookType: notebookType });