Troubleshoot GitHub Copilot Suggestions and Content Exclusions
30-second answer
When Copilot goes quiet, start with the status bar icon and work outward. Are you signed in with an account that has a seat? Is the file excluded by a content exclusion? Are completions disabled for that language in github.copilot.enable? Is the public code filter (Block) hiding a match? Is a proxy or firewall blocking Copilot's endpoints? Is the extension up to date, and does an organization policy turn the feature off? Read Output › GitHub Copilot (or run GitHub Copilot: Open Logs) for the real error. For exclusions, remember changes can take up to 30 minutes to reach an open IDE; reload the window.
Exam objective: 6.2.2 Resolve issues with suggestions and content exclusions. (Skills measured as of August 7, 2026)
Simulations
Feel it before you read it. No account needed, nothing leaves this page.
No suggestions at all? Start with the <strong>status bar icon</strong>: are you signed in, and does the account have a <strong>seat</strong>?
👆 Click the glowing item on screen to continue
Read the steps as text
- No suggestions at all? Start with the status bar icon: are you signed in, and does the account have a seat?
- Suggestions missing in one file only? It may be excluded, or completions may be disabled for that language in github.copilot.enable.
- Open Output › GitHub Copilot (or GitHub Copilot: Open Logs). Network errors often mean a proxy or firewall blocks Copilot’s endpoints.
- Other usual suspects: an out-of-date extension, a policy that turns a feature off, or an exclusion change that hasn’t reached the IDE yet (up to 30 minutes, or reload the window).
🧪 Simulation for learning. Screens are simplified versions of Visual Studio Code and github.com with GitHub Copilot; names, files and suggestions are examples. Not affiliated with GitHub or Microsoft, and nothing here touches your real account.
🖱️ Drag to rotate · scroll or pinch to zoom
Troubleshooting
No suggestions? Check the seat and sign-in, whether the file is excluded, whether the language is disabled in settings, the public code filter, network or proxy settings, and the Copilot logs in the IDE.
🤔 What happens if…
Read this tour as text
- Plans and seats. Individuals use Copilot Free, Pro or Pro+. Organizations buy Copilot Business per seat; Copilot Enterprise adds features on GitHub Enterprise Cloud. Admins assign seats to users or teams.
- Policies flow down. An enterprise can enforce a Copilot policy for all its organizations or leave the choice to each organization. Policies cover features (chat in the IDE, on github.com, the CLI, code review, agents), models and MCP.
- Seats light up Copilot. A developer gets Copilot once they have a seat. Remove the seat and Copilot stops at the end of the billing cycle.
- Suggestions matching public code. A policy decides what happens when a suggestion matches public code: Block hides it; Allow shows it with a code reference (repository and licence) so you can decide.
- Content exclusions. Repository, organization and enterprise admins can exclude files and paths. Copilot won’t use them as context or suggest inside them in supported IDEs. Changes can take up to 30 minutes to reach editors.
- Audit log and metrics. Copilot settings changes, seat assignments and content exclusion changes appear in the audit log. Usage metrics and the REST API show adoption and activity.
- Responsible use. Policies reduce risk, but the developer still owns the output: review it, test it, scan it for vulnerabilities and check licences before it ships.
- Troubleshooting. No suggestions? Check the seat and sign-in, whether the file is excluded, whether the language is disabled in settings, the public code filter, network or proxy settings, and the Copilot logs in the IDE.
A free terminal with GitHub Copilot CLI, git and gh. No tasks: install the CLI, start a session, try slash commands and tool permissions, or call the seats API.
🎓 Education-only simulation. Your lab is saved in this browser, so you can leave and continue later.
😟 THE PROBLEM
Copilot went quiet in one repository and nobody knows why.
😊 THE SOLUTION
Work through a checklist: account, seat, exclusions, settings, logs.
- Signed out or no seat✓ Status icon and sign-in
- File excluded✓ Check the exclusion
- Proxy blocks Copilot✓ Read the Copilot logs
Start with a question
Monday morning, you open contoso-shop, start typing, and no grey text appears. Where do you start?
Not by reinstalling VS Code. That’s the slow way.
Copilot can go quiet for about seven ordinary reasons, and most of them tell you which one it is if you look in the right place. The status bar icon, then the logs. Five minutes, usually.
Some of the reasons aren’t bugs at all. An admin may have excluded the file you’re in. You may have switched off suggestions for YAML last week and forgotten. Knowing the list means you can tell “broken” from “working as configured”.
Explain it like I’m 10
The technical explanation
Work from the editor outwards
| Symptom | Likely cause | Check or fix |
|---|---|---|
| No suggestions anywhere, icon shows signed out | Not signed in | GitHub Copilot: Sign in from the Command Palette |
| Signed in, still nothing | No seat, or the seat was removed | Check your Copilot settings on github.com, or ask the org admin |
| Nothing in one file | File is excluded | Status icon says excluded. Expected behaviour, ask the admin if it’s wrong |
| Nothing in one language | Disabled in github.copilot.enable | Set that language to true |
| A suggestion seems to vanish | Public code filter is Block and it matched | Expected. The org chose Block |
| Spinner, then errors | Proxy or firewall blocks Copilot’s endpoints | Read the logs, set http.proxy, ask IT to allow the endpoints |
| Odd errors after an update | Extension out of date or mismatched with VS Code | Update the GitHub Copilot Chat extension and VS Code |
| Chat or CLI missing, completions fine | Organization policy turned the feature off | Ask the admin which policies are set |
Read the logs
In VS Code, open View › Output and pick GitHub Copilot from the dropdown, or run GitHub Copilot: Open Logs from the Command Palette. That’s where the real reason shows up:
[GitHub Copilot] Fetching completions…
[GitHub Copilot] Error: request blocked by proxy (407)
A 407 means proxy authentication. Errors about certificates often mean a proxy that inspects TLS traffic, and the corporate root certificate needs to be trusted. Connection timeouts mean a firewall isn’t letting Copilot’s endpoints through. GitHub’s firewall troubleshooting page lists the hosts your network team needs to allow.
Content exclusion problems
Exclusions cause two kinds of tickets.
“I excluded it, but Copilot still suggests there.” Changes can take up to 30 minutes to reach an IDE that’s already open. Reload the window (Developer: Reload Window). If it still happens, check the pattern: /secrets/** anchors at the repository root, secrets/** can match anywhere. Also check the IDE and extension are supported and current, and remember exclusions don’t apply to every Copilot feature.
“Copilot doesn’t work in this file and I need it.” Look at the status icon. If it says the file is excluded, Copilot is doing what the admin asked. Talk to whoever owns the rule (repository admin or org owner). The audit log shows who changed it, as a copilot. event.
Architect level The Copilot CLI has its own checks
In the terminal, Copilot CLI problems follow the same idea. copilot version and copilot update deal with old builds. /login fixes authentication, or check the token in COPILOT_GITHUB_TOKEN, GH_TOKEN or GITHUB_TOKEN (a fine-grained token with the Copilot Requests permission; classic tokens aren’t supported). If the CLI won’t start at all for an org seat, the organization may have turned the CLI off by policy.
Real-world business scenario
Contoso (fictional)
- The problem
- After Contoso moved to a new corporate proxy, 60 developers reported that Copilot had stopped working, and the help desk started reinstalling VS Code on each laptop.
- What they used
- One engineer read Output › GitHub Copilot, found 407 proxy errors, and the network team allowed Copilot's endpoints and pushed the proxy settings through managed VS Code settings. The team also published a one-page checklist.
- Why that choice
- The logs pointed at the real cause in minutes, so nobody had to rebuild machines.
- The result
- Copilot came back for everyone the same afternoon, and later tickets dropped because most turned out to be excluded files or a disabled language.
When to use it and when not to
✓ Use it when…
- Copilot stops suggesting, everywhere or in one file.
- A new content exclusion doesn't seem to work, or blocks a file someone needs.
- Copilot works at home but not on the office network.
✕ Think twice when…
- Reinstalling the editor before you've read the status icon and the logs.
- Filing a bug when the status icon says the file is excluded. That's a configuration choice.
- Changing your proxy settings when the real issue is a missing seat.
↔ Alternatives to consider
- GitHub Status to check for a service incident before you debug locally.
- Your organization admin for seats, policies and exclusion rules.
- GitHub Support with your Copilot logs attached when the checklist doesn't find it.
Test yourself with exercises
5 original practice questions in the GH-300 style. Pick your answers, then check them. You will see why each option is right or wrong. Score 75% or more and this topic is marked complete.
Interview preparation
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner Copilot stopped suggesting in VS Code. What's the first thing you check?
Model answer
The Copilot icon in the status bar. It tells me straight away if I'm signed out, if Copilot is disabled, or if the file is excluded. Then I check that my account actually has a seat.
Interviewer follows up
And if the icon looks fine?
You
I open Output and pick GitHub Copilot to read the logs. Network errors, auth errors and policy messages show up there.
Intermediate Suggestions work everywhere except Markdown files. What's likely going on?
Model answer
Completions are probably turned off for Markdown in the github.copilot.enable setting. That's a per-language switch. If the setting's fine, I'd check whether the Markdown files are covered by a content exclusion.
Experienced developer The logs show a 407 error when fetching completions. What does that mean and what do you do?
Model answer
A 407 is proxy authentication required, so a corporate proxy is in the way. I'd set VS Code's http.proxy settings correctly, or ask IT to allow Copilot's endpoints through the proxy and firewall. If the proxy inspects TLS, the corporate certificate may need to be trusted too.
Interviewer follows up
How do you confirm it's fixed?
You
Reload the window, type in a file, and watch the Copilot log for successful requests instead of errors.
Scenario An admin excluded /secrets/** five minutes ago, but a developer still gets suggestions in that folder. What do you tell them?
Model answer
It can take up to 30 minutes for exclusion changes to reach an IDE that's already open. Reload the window first. If it still happens after that, check the pattern matches the path from the repository root and that they're in a supported IDE with a current extension.
Architecture & design How would you cut down Copilot support tickets across 500 developers?
Model answer
Publish a short checklist: status icon, seat, exclusions, language settings, proxy, extension version, logs. Make sure the network team has allowed Copilot's endpoints before rollout, keep extensions updated through managed settings, and tell people when policies or exclusions change, since both look like "Copilot is broken" from the editor.
Quick revision
Key points
- Start with the status bar icon, then the seat and sign-in.
- One file only? Check content exclusions and the per-language github.copilot.enable setting.
- Missing one suggestion with Block set? The public code filter may be hiding a match.
- Network errors mean a proxy or firewall is blocking Copilot's endpoints.
- Update the extension and check organization policies for disabled features.
- Logs live in Output › GitHub Copilot, or run GitHub Copilot - Open Logs.
- Exclusion changes can take up to 30 minutes; reload the window.
Important terminology
- Copilot status icon
- The icon in the IDE status bar that shows whether Copilot is ready, signed out, disabled, or blocked for the current file.
- Seat
- A Copilot licence assigned to a user, from their own plan or from an organization.
- GitHub Copilot logs
- The Output panel channel for GitHub Copilot in VS Code, opened with Output › GitHub Copilot or the command GitHub Copilot - Open Logs.
- Proxy
- A network server that relays traffic. A corporate proxy or firewall must allow Copilot's endpoints or requests fail.
- Reload Window
- A VS Code command that restarts the window and its extensions, often used to pick up new settings or exclusion changes.
- Organization policy
- A Copilot setting chosen by an organization or enterprise owner that can turn features such as chat or the CLI on or off for its seats.
Common mistakes
- Reinstalling everything before reading the logs.
- Assuming exclusions apply instantly and filing a bug after five minutes.
- Forgetting that an organization policy can switch off a feature, such as chat or the CLI.
- Debugging the network when the user simply has no seat.
Exam tips
- "No suggestions in any file" = sign-in / seat first, then network.
- "No suggestions in one file" = content exclusion or language disabled.
- "Exclusion added but suggestions continue" = wait up to 30 minutes or reload the window.
- "Find the error details" = Output › GitHub Copilot logs.
Five quick revision questions
-
1.Where's the first place to look when Copilot stops?Show
The Copilot status bar icon.
-
2.Which setting turns completions off for a language?Show
github.copilot.enable.
-
3.What does a proxy error in the logs point to?Show
A proxy or firewall blocking Copilot's endpoints.
-
4.How long can an exclusion change take to reach an open IDE?Show
Up to 30 minutes.
-
5.Which command opens the Copilot logs?Show
GitHub Copilot - Open Logs (or Output › GitHub Copilot).
Official references
Finished this lesson? Tick it off. Your progress is saved in this browser.