diff --git a/src/kernels/kernelInfo.ts b/src/kernels/kernelInfo.ts index 7235c889d81..5ee322b92b4 100644 --- a/src/kernels/kernelInfo.ts +++ b/src/kernels/kernelInfo.ts @@ -39,7 +39,10 @@ export async function getKernelInfo( return; } if (session.kernel?.info) { - return session.kernel.info; + promises.push(session.kernel.info); + session.kernel.info + .then((content) => cacheKernelInfo(workspaceMemento, kernelConnectionMetadata, content)) + .catch(noop); } // KernelMessage.IReplyErrorContent | KernelMessage.IReplyAbortContent | KernelMessage.IInfoReply | undefined