GitHub Copilot Extension Troubleshooting Guide | Generated by AI

Home 2025.12

Question: Why does the GitHub Copilot extension in VS Code on Windows sometimes become unresponsive, requiring me to open a new window, and why can’t I switch between Ask and Agent modes?

Answer:

The GitHub Copilot extension in Visual Studio Code (VS Code) can become unresponsive or frozen on Windows due to several common issues, particularly when using features like the Chat view (with modes such as Ask for questions, Edit for code changes, or Agent for autonomous tasks). This often manifests as the interface hanging, requiring a full reload or new window to resolve, and prevents switching between modes because the extension host process becomes stuck. Based on user reports and official troubleshooting, here are the most likely causes and fixes:

Common Causes

Troubleshooting Steps

Try these in order—most users resolve it without reinstalling:

  1. Quick Reloads:
    • Reload the window: Press Ctrl+Shift+P, type “Developer: Reload Window”, and select it. This refreshes Copilot without closing your work.
    • Restart extensions: Open Extensions view (Ctrl+Shift+X), click the “…” menu, and select “Restart Extensions”. This often fixes unresponsiveness without a full restart.
  2. Check Logs for Clues:
    • Open Command Palette (Ctrl+Shift+P), run “Output: Show Output”, and select “GitHub Copilot” or “GitHub Copilot Chat”. Look for errors like connection failures or large file warnings (e.g., embeddings.json >5MB). Set log level to “Trace” via “Developer: Set Log Level” for more details.
  3. Verify Settings and Auth:
    • Ensure Agent mode is enabled: Go to Settings (Ctrl+,), search for “chat.agent.enabled”, and toggle it on.
    • Sign out/in: Click the Accounts icon (bottom-left), sign out of GitHub, then sign back in.
    • Check subscription: Visit GitHub Copilot settings to confirm active access and no limits.
  4. Clear Cache and Data:
    • Run Ctrl+Shift+P > “GitHub Copilot: Clear Copilot Data” (or similar commands in Output panel).
    • Delete large cache files: Navigate to %APPDATA%\Code\User\globalStorage (or workspace-specific) and remove Copilot-related folders like github.copilot-chat. Restart VS Code.
  5. Update Everything:
    • Update VS Code and Copilot extension to the latest versions via Extensions view.
    • If on Windows, run VS Code as Administrator once to rule out permission issues.
  6. Workarounds for Mode Switching:
    • Open a new Chat view: Press Ctrl+Alt+I to open Chat in a side panel, then select the mode from the dropdown. If stuck, close the current chat tab and start fresh.
    • Avoid multitasking: Don’t switch windows during Agent tasks; let them complete.

If these don’t help, collect diagnostics via Ctrl+Shift+P > “GitHub Copilot: Collect Diagnostics” and report on the VS Code GitHub issues. For persistent freezes, temporarily disable other extensions to isolate conflicts.

References:


Back

x-ai/grok-4.1-fast

Donate