From 1a9e4235ac7f36f6ea629fa0aeaabfe968ebe467 Mon Sep 17 00:00:00 2001 From: Eva H <63033505+hoyyeva@users.noreply.github.com> Date: Mon, 10 Aug 2026 09:46:25 -0700 Subject: [PATCH] docs: add VS Code context length guidance (#17610) --- docs/integrations/vscode.mdx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/integrations/vscode.mdx b/docs/integrations/vscode.mdx index b358412c3..d65329b60 100644 --- a/docs/integrations/vscode.mdx +++ b/docs/integrations/vscode.mdx @@ -38,6 +38,12 @@ ollama signin Local models do not require sign-in. +## Context length + +VS Code may show a model's maximum supported context length even when Ollama allocates a smaller context at runtime. + +For local models, open Ollama **Settings**, set the context length to at least 64k, reload the VS Code window, and resend your prompt. See [Context length](/context-length) for more information. + ## Troubleshooting If Ollama models do not appear in the model picker: