diff --git a/src/standalone/intellisense/resolveCompletionItem.ts b/src/standalone/intellisense/resolveCompletionItem.ts index a4a884966e7..6988772b4c5 100644 --- a/src/standalone/intellisense/resolveCompletionItem.ts +++ b/src/standalone/intellisense/resolveCompletionItem.ts @@ -170,6 +170,9 @@ function cachedResult( if (!kernel.session?.kernel) { return; } + if (content.status !== 'ok' || !content.found) { + return; + } const cacheKey = JSON.stringify(message); const cache = cachedKernelInspectRequests.get(kernel.session.kernel) ||