AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

How to Troubleshoot High Latency or Missing Completions in GitHub Copilot

Zhou Jiajia · 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 works, it feels like an extension of your own thought process. When it lags by three seconds or refuses to suggest a single bracket, it turns into an irritating cognitive drag.

At 365Finds, our view is pragmatic: code completions that take longer than 800 milliseconds cease to be assistance—they become an interruption. When developers run into silence or sluggish responses, their instinct is often to frantically toggle the extension, restart the editor, or curse OpenAI's servers. But in our experience across developer teams, roughly 80% of Copilot failures stem from client-side bottlenecks, silent corporate proxy drops, or workspace context overload.

Here is the systematic triage sequence 365Finds recommends to locate and fix the root cause in minutes.


1. The 10-Second Visual and Status Check

Before modifying any configuration files, check the immediate visual indicators.


2. Isolate Workspace Context from Network Latency

A common illusion is assuming high latency is caused by a slow network connection. Often, the delay occurs locally before a single byte leaves your machine.

To test this, create an isolated scratch file:

  1. Open a new window in your IDE with no open folders or workspaces.
  2. Create an empty file named test.js or test.py.
  3. Type a standard function declaration (for example, function calculateDiscount(price, rate) {) and pause.

If completions appear instantly in the scratch file but crawl when editing your primary project, your network connection is fine. The bottleneck is local context processing:


3. Extract the Real Story from Extension Logs

If the scratch file also fails or hangs, stop guessing and inspect the raw output stream.

In Visual Studio Code:

  1. Open the Output panel (View > Output or Ctrl+Shift+U / Cmd+Shift+U).
  2. In the dropdown on the top-right corner of the Output view, select GitHub Copilot.
  3. Elevate logging verbosity: Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P), run Developer: Set Log Level..., select GitHub Copilot, and change it from Info to Trace or Debug.
  4. Trigger a completion in your editor and examine the log output.
  5. For connectivity overviews, run Developer: Chat Diagnostics from the Command Palette to view endpoint reachability.

In JetBrains IDEs (IntelliJ IDEA, WebStorm, PyCharm):

  1. Navigate to Help > Diagnostic Tools > Open Log Path.
  2. Inspect idea.log and search for entries prefixed with com.github.copilot.

What to Look For in the Output:


4. Resolving Corporate Proxies, SSL Inspection, and Firewalls

In enterprise and VPN environments, proxy and certificate misconfigurations account for the majority of missing completions.

[IDE / Editor] 
      │ 
      ▼
[Local Proxy Agent] ──(Requires http:// scheme, NOT https://)
      │
      ▼
[Corporate Firewall / TLS Inspection] ──(Requires Root CA trusted by Node.js)
      │ ──(Requires WebSocket / Port 443 Pass-Through)
      ▼
[GitHub Copilot Edge Endpoints]

The Proxy Scheme Trap

Copilot supports standard HTTP proxies, but the proxy URL configuration must start with http://, even if it is tunneling secure traffic:

If your proxy requires authentication, format the URI as http://username:password@proxy.corp.internal:8080. Verify that environment variables (HTTP_PROXY, HTTPS_PROXY, http_proxy, https_proxy) and IDE-specific proxy settings agree.

Custom Corporate CA Certificates

Because VS Code runs on Electron and uses a Node.js process for extensions, it does not always inherit Windows or macOS system trust stores out of the box.

WebSockets and Port 443

GitHub Copilot relies heavily on secure WebSockets (wss://) over TCP port 443 for streaming completions. Many corporate deep packet inspection (DPI) firewalls allow standard HTTPS traffic on port 443 but block or drop HTTP Upgrade: websocket requests. If WebSockets are blocked, inline completion streaming drops out.

Confirm with your network team that outbound traffic over TCP port 443 to the following domains is unrestricted and exempt from WebSocket stripping:


Summary of Diagnostic Steps

Diagnostic CheckWhat to CheckExpected Healthy Result
GitHub Statusgithubstatus.com"GitHub Copilot: Operational"
Status Bar IconBottom panel icon stateActive, no slash, no warning badge
Content ExclusionStatus bar hover on current fileNo organizational exclusion notice
Workspace ContextIsolated empty scratch fileCompletions appear in < 500ms
Log OutputOutput panel set to Trace200 OK responses, no ETIMEDOUT or SSL errors
Proxy ProtocolProxy configuration URIStarts with http://, not https://
TLS InterceptionNode.js certificate trust storeNODE_EXTRA_CA_CERTS points to corporate root CA
WebSocket TrafficPort 443 protocol inspectionwss:// handshake permitted through firewall

If you have confirmed that GitHub's status is operational, your blank scratchpad generates completions rapidly, and your proxy passes WebSocket traffic to api.githubcopilot.com without dropping certificates, your setup is clear. At that point, persistent latency is tied to network round-trip hops between your physical ISP route and the nearest edge point.

References