AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

How to Troubleshoot GitHub Copilot When It Stops Generating Completions in VS Code

Ana Lázaro Touza · 365Finds Editorial
Indexed 88,650 Wiki articles

Put 365 Wiki to work with your AI

Copy the prompt below, paste it into the AI you already use, then ask your question.

Download full Skill

Try it with the prompt first. If you use 365 Wiki often, install the full 365Wiki Skill so you do not have to paste it again. No regular AI? Gemini or Microsoft Copilot on the web will work.

365Wiki Skill

When GitHub Copilot abruptly goes silent in Visual Studio Code, your first impulse might be to restart the editor, reinstall the extension, or start tweaking arbitrary settings. At 365Finds, we advise against that shotgun approach. Most developers waste thirty minutes rebooting their environment when over 80% of completion dropouts trace back to just two culprits: a silently desynchronized OAuth session, or a corporate proxy intercepting SSL traffic.

Here is the systematic diagnostic path we rely on to pinpoint why GitHub Copilot refuses to generate ghost-text completions and restore your inline suggestions immediately.

1. The Five-Second Status Bar Triage

Before diving into config files, look at the GitHub Copilot icon located in the bottom status bar on the right side of VS Code. Its visual state provides immediate diagnostic telemetry:

Hover over the slashed icon. If your organization enforces Content Exclusion under a Copilot Business or Enterprise subscription, a tooltip will confirm that suggestions are blocked for that repository or path.

2. Inspect the Raw Output Logs

Do not guess what failed. Inspect the actual runtime stream.

Open the Command Palette (Ctrl+Shift+P on Windows/Linux or Cmd+Shift+P on macOS), run Output: Focus on Output View, and select GitHub Copilot from the channel dropdown in the Output panel. (Check GitHub Copilot Chat as well if installed.)

The output log reveals the exact HTTP response or system error:

3. Clear Stale Sessions and Force Re-Authentication

Corrupted local credential caches account for a massive share of ghost text failures. Even when the bottom-left account profile appears connected, GitHub Copilot's underlying token may be invalidated.

To completely reset the authorization pipeline:

  1. Click the Accounts icon (the gear or profile avatar at the bottom-left of VS Code).
  2. Select your GitHub account and click Sign Out.
  3. Open the Command Palette and run Developer: Reload Window.
  4. After reload, click the bottom status bar icon for GitHub Copilot or open a supported code file, and follow the prompt to Sign in with GitHub.
  5. Complete the browser OAuth handshake and authorize Visual Studio Code.

4. Audit Inline Suggestion Settings and Language Handlers

If authentication succeeds but ghost text still fails to render as you type, VS Code's core inline completion pipeline may be disabled.

Check your settings.json (open via Preferences: Open User Settings (JSON)):

{
  "editor.inlineSuggest.enabled": true,
  "github.copilot.enable": {
    "*": true,
    "plaintext": false,
    "markdown": false,
    "scminput": false
  }
}

Ensure editor.inlineSuggest.enabled is explicitly true. If set to false, VS Code suppresses inline ghost text across every installed extension.

Examine the github.copilot.enable object. By default, GitHub Copilot disables itself in certain file types like Markdown or plaintext. If your file extension is misidentified or mapped to an unsupported language ID, suggestions will not trigger.

Next, test manual invocation. Place your cursor on an empty line in a supported file (such as .ts or .py) and press Alt + \ (Windows/Linux) or Option + \ (macOS). If manual invocation displays ghost text, your issue is an input trigger conflict or keybinding collision. Other extensions—specifically snippets, Emmet, or alternative AI autocompleters like Tabnine—often intercept the Tab key or cancel inline suggestion listeners. Run Help: Start Extension Bisect to isolate extension collisions.

5. Resolve Corporate Proxies, Firewalls, and SSL Certificates

In enterprise networks, Copilot often breaks because security gateways perform deep packet inspection on HTTPS traffic. The Copilot extension runs on Node.js inside VS Code, and Node maintains its own trusted CA store independent of the operating system root certificate store.

When you see SSL certificate errors in the Output logs:

At 365Finds, we strongly caution against setting "http.proxyStrictSSL": false. While flipping strict SSL off is widely posted on forums as an instant remedy, doing so turns off certificate validation globally for all VS Code network traffic, leaving your development machine vulnerable to man-in-the-middle attacks. Treat strict SSL disabling strictly as an ephemeral 60-second diagnostic test, not a permanent fix.

6. Large Files and File Size Guardrails

GitHub Copilot imposes internal size and token thresholds to prevent editor freezing. If your file exceeds several megabytes, contains extensive minified lines, or consists of massive static data structures, the client daemon silently skips completion dispatch. Verify completions in a clean, small test file (test.py or test.js) before attempting further configuration surgery.

References