Nothing ruins a flow state faster than a phantom autocomplete. You type a function signature, pause for the customary ghost text, and get nothing. Two seconds pass. Five seconds. Then either a red status bar flashes an obscure timeout error, or GitHub Copilot quietly gives up without saying a word.
At 365Finds, we look at developer tooling failures through a practical lens: ghosting isn't just an annoyance, it is a productivity leak. When GitHub Copilot suffers from completion lag or outright connection timeouts (ETIMEDOUT, ECONNRESET, HTTP 504), developers often waste an hour toggling the extension on and off, restarting their IDE, or blindly tweaking random network settings. That trial-and-error approach rarely works.
The breakdown almost always falls into one of four distinct layers: cloud availability, corporate proxy misconfigurations, TLS certificate interception, or local IDE context exhaustion. Here is how 365Finds diagnoses and systematically fixes each failure point.
Step 1: Isolate the Cloud Endpoint Outside the Editor
Before tearing apart your editor settings, eliminate the simplest explanation: is GitHub's inference infrastructure actually reachable from your machine?
Open your terminal and run a raw ping against the Copilot API endpoint:
curl -v https://api.githubcopilot.com/_ping
This simple command draws a sharp line between two realities:
- If this curl command hangs, times out, or fails to resolve DNS, your problem has nothing to do with Visual Studio Code or JetBrains. Your local network, VPN routing, or corporate gateway is dropping packets to GitHub's infrastructure.
- If the ping returns an immediate HTTP response, the network path is alive. The culprit is lurking inside your IDE's proxy configuration, token authentication, or local extension process.
Also, check githubstatus.com. When Copilot's backend model servers experience degraded performance or regional latency spikes, completions slow to a crawl worldwide, regardless of your local setup.
Step 2: Fix the Corporate Proxy URL Protocol Trap
If you work behind an enterprise HTTP proxy, you may have encountered one of the most frustrating quirks in the GitHub Copilot client: it does not support proxy URLs with an https:// prefix.
Many corporate setups instruct developers to configure their IDE proxy settings with https://proxy.company.internal:8080. While standard browser traffic might handle this, GitHub Copilot's underlying network client will frequently drop connections silently or hang until reaching a 120-second timeout.
To fix this:
- Ensure your proxy URL explicitly begins with
http://, even if it tunnels SSL/TLS traffic to external destinations:http://proxy.company.internal:8080 - If your proxy requires basic authentication, embed the credentials directly:
http://username:password@proxy.company.internal:8080 - Understand environment variable precedence. GitHub Copilot parses system variables in a strict order:
HTTPS_PROXYhttps_proxyHTTP_PROXYhttp_proxy
365Finds has seen teams struggle because an outdated HTTP_PROXY was lingering in their shell profile while the IDE had a different proxy configured in settings. Copilot takes the first valid variable it matches and applies it across all connections.
Step 3: Tackle TLS Inspection and Broken Certificate Chains
When a corporate security appliance (such as Zscaler, Netskope, or Palo Alto Networks) decrypts and inspects SSL traffic, GitHub Copilot often throws unable to verify the first certificate or self-signed certificate in certificate chain.
In Visual Studio Code, tempting as it is, do not permanently disable http.proxyStrictSSL. Turning off strict SSL validation leaves your entire development environment vulnerable to man-in-the-middle attacks. 365Finds views disabling certificate validation as an unacceptable security compromise outside of a temporary 60-second test.
Instead, ensure custom enterprise certificates are recognized by your runtime:
- Windows: GitHub Copilot queries the Windows Certificate Store via
win-ca. Ensure your IT department's Root and Intermediate CA certificates are properly installed in "Trusted Root Certification Authorities" at the system level. - macOS: Copilot uses
mac-cato read the macOS Keychain. Ensure the corporate root certificate is marked "Always Trust" in Keychain Access. - Linux: Copilot checks
/etc/ssl/certs/ca-certificates.crtand/etc/ssl/certs/ca-bundle.crt. Update your CA certificates via your distribution's package manager (e.g.,update-ca-certificates).
If your enterprise firewall terminates WebSocket connections, Copilot Chat and agent workflows will disconnect intermittently. Copilot requires persistent, bidirectional WebSocket traffic over TCP port 443 to endpoints ending in .azure.com and api.githubcopilot.com. Ask your network team to bypass deep packet inspection on these specific endpoints rather than fighting custom cert chains on every developer machine.
Step 4: Rule Out Local Workspace Freezes and Context Bloat
Not all "completion delays" are caused by bad Wi-Fi. 365Finds frequently discovers that the delay is happening entirely on the developer's laptop before a single byte leaves the machine.
When you open a massive repository with hundreds of thousands of files—or when huge folders like node_modules, build, or .git are not excluded—the Copilot Language Server spends hundreds of milliseconds attempting to compute surrounding context, open tab references, and prompt embeddings.
To check if your editor is choking locally:
- In VS Code, open the Command Palette (
Ctrl+Shift+P/Cmd+Shift+P) and run Developer: Open Process Explorer. - Look for the process named
code --type=utilityor the extension host running GitHub Copilot. If CPU utilization spikes near 100% or memory exceeds 2 GB every time you type, the extension host is thrashing. - Configure your
.gitignoreand editor file exclusion settings (files.excludeandsearch.exclude) to block Copilot from indexing bloated dependencies.
Step 5: Inspect Trace Logs and Chat Diagnostics
When subtle latency persists, turn on trace logging to see the exact round-trip time (RTT) of your completions:
- Open the Command Palette and run Developer: Set Log Level.
- Select GitHub Copilot (or GitHub Copilot Chat), then set the level to Trace.
- Open the Output panel (
View > Output) and switch the dropdown to GitHub Copilot. - To run a consolidated reachability check, run Developer: Chat Diagnostics from the Command Palette. This generates an automated report displaying endpoint reachability, TLS handshake status, and active token expirations.
If your trace logs show API request latencies consistently exceeding 1,200 ms, the model inference itself is arriving too late to be useful for real-time typing, pointing directly to high network jitter or geographic routing latency between your machine and GitHub's edge gateways.