Pull down to go back
Local Ollama Models in VS Code Copilot Can't See Your Workspace Context

Local Ollama Models in VS Code Copilot Can't See Your Workspace Context

用 Ollama 本機模型跑 VS Code Copilot,竟然看不到你的工作區檔案

If you're using a local Ollama model with VS Code Copilot, you might run into a frustrating issue: the AI doesn't actually know what file you're working on. You ask it to edit or summarize your current file, but it's basically flying blind—it has no idea which file you're referring to. This is a context awareness problem where the local model isn't receiving the workspace information it needs to understand your coding environment. The issue appears to be a limitation in how Ollama integrates with VS Code's Copilot extension, preventing the model from accessing file paths, open documents, and other workspace metadata. If you're experiencing this, it's worth checking your model configuration and whether your Ollama setup supports the necessary context-passing features that cloud-based AI assistants typically have built-in.