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.
- Upstream Server Health: Open the official GitHub status dashboard. If GitHub Copilot or the underlying API is experiencing degraded performance or an incident, no amount of local troubleshooting will help. Stop debugging and wait for the platform service to recover.
- The Status Bar Icon: Look at the small Copilot icon in your editor’s status bar (the bottom panel in VS Code or JetBrains IDEs):
- Normal (Solid/Active): The extension is connected and active.
- Slashed Through / Inactive: Copilot is deactivated for the current file type, or the extension is disabled. Click the icon to check if
github.copilot.enableis turned off for the active language mode. - Warning Triangle or Badge: Authentication has expired, your seat subscription was revoked, or network connectivity is completely severed. Clicking it will prompt you to sign in again.
- Content Exclusion Policies: If you are working on enterprise code, your organization or repository administrator may have enabled Content Exclusion. When an exclusion rule matches a repository, directory, or file pattern, Copilot turns off inline completions and chat for that buffer. In VS Code, hovering over the slashed status bar icon will explicitly indicate if the file is blocked by an organizational exclusion rule.
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:
- Open a new window in your IDE with no open folders or workspaces.
- Create an empty file named
test.jsortest.py. - 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:
- Massive Open Files: If you have 50,000-line minified bundles, giant SQL dumps, or large CSVs open in adjacent tabs, Copilot’s context engine spends valuable cycles reading and summarizing neighboring buffers. Close unrelated large files.
- Competing Extensions: Multiple AI coding extensions (such as running Copilot alongside Tabnine, Codeium, or legacy IntelliCode) will contend for the single inline suggestion slot (
editor.inlineSuggest.enabled). In VS Code, verify thateditor.inlineSuggest.enabledis explicitly set totrue, and disable competing completion extensions to rule out race conditions.
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:
- Open the Output panel (
View > OutputorCtrl+Shift+U/Cmd+Shift+U). - In the dropdown on the top-right corner of the Output view, select GitHub Copilot.
- Elevate logging verbosity: Open the Command Palette (
Ctrl+Shift+P/Cmd+Shift+P), runDeveloper: Set Log Level..., selectGitHub Copilot, and change it fromInfotoTraceorDebug. - Trigger a completion in your editor and examine the log output.
- For connectivity overviews, run
Developer: Chat Diagnosticsfrom the Command Palette to view endpoint reachability.
In JetBrains IDEs (IntelliJ IDEA, WebStorm, PyCharm):
- Navigate to
Help > Diagnostic Tools > Open Log Path. - Inspect
idea.logand search for entries prefixed withcom.github.copilot.
What to Look For in the Output:
401 Unauthorizedor403 Forbidden: Your GitHub session token has expired, seat allocation was changed, or the enterprise policy blocks access. Sign out of GitHub in the IDE and log back in.ETIMEDOUTor499 Client Closed Request: The request to GitHub's completion service failed to establish a handshake within the allotted window.unable to get local issuer certificateorself signed certificate in certificate chain: Your corporate network uses SSL/TLS inspection, and Copilot’s Node.js runtime does not trust the intercepted proxy certificate.
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:
- Correct:
http://proxy.corp.internal:8080 - Incorrect:
https://proxy.corp.internal:8080
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.
- Diagnostic Check: In VS Code settings, temporarily setting
http.proxyStrictSSLtofalsecan reveal if certificate verification is the blocking factor. 365Finds considers running withproxyStrictSSL: falsepermanently an unacceptable security risk in production environments. - Proper Fix: Export your organization's internal Root and Intermediate CA certificates in PEM format and set the
NODE_EXTRA_CA_CERTSenvironment variable to point to that.pemfile before starting the editor, or configure your editor's CA certificate bundle path.
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:
api.githubcopilot.comcopilot-proxy.githubusercontent.comapi.github.comdefault.exp-tas.com
Summary of Diagnostic Steps
| Diagnostic Check | What to Check | Expected Healthy Result |
|---|---|---|
| GitHub Status | githubstatus.com | "GitHub Copilot: Operational" |
| Status Bar Icon | Bottom panel icon state | Active, no slash, no warning badge |
| Content Exclusion | Status bar hover on current file | No organizational exclusion notice |
| Workspace Context | Isolated empty scratch file | Completions appear in < 500ms |
| Log Output | Output panel set to Trace | 200 OK responses, no ETIMEDOUT or SSL errors |
| Proxy Protocol | Proxy configuration URI | Starts with http://, not https:// |
| TLS Interception | Node.js certificate trust store | NODE_EXTRA_CA_CERTS points to corporate root CA |
| WebSocket Traffic | Port 443 protocol inspection | wss:// 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.