Your profile

One profile for every MSDEVBUILD site. Only you can see it, and the site owner if you write in.

Lesson 30 of 30

Troubleshoot GitHub Copilot Suggestions and Content Exclusions

Module 6: Privacy & Safeguards ⏱ 10 min read Updated

Your note

My notes for this lesson

Select any text in the lesson to highlight it or add a note. Saved in this browser.

    No highlights yet. Select a sentence in the lesson, then pick a colour or add a note.

    All my bookmarks and notes

    Reading settings

    For every lesson, saved in this browser.

    Text size
    Line spacing
    Font

    With IaaS you rent the virtual machine. Microsoft looks after the building, power and hardware; you patch the operating system.

    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.

    Simulate it » No Azure account needed

    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.

    VS Code & GitHub: Troubleshoot Copilot Sign-in, exclusions, language settings, logs and proxies.
    </> Embed

    Embed this simulation

    Free for trainers, teachers and bloggers. Paste this into your page:

    Loading…

    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
    1. No suggestions at all? Start with the status bar icon: are you signed in, and does the account have a seat?
    2. Suggestions missing in one file only? It may be excluded, or completions may be disabled for that language in github.copilot.enable.
    3. Open Output › GitHub Copilot (or GitHub Copilot: Open Logs). Network errors often mean a proxy or firewall blocks Copilot’s endpoints.
    4. 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.

    😟 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
    🛠️ Solved with: Troubleshooting

    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

    SymptomLikely causeCheck or fix
    No suggestions anywhere, icon shows signed outNot signed inGitHub Copilot: Sign in from the Command Palette
    Signed in, still nothingNo seat, or the seat was removedCheck your Copilot settings on github.com, or ask the org admin
    Nothing in one fileFile is excludedStatus icon says excluded. Expected behaviour, ask the admin if it’s wrong
    Nothing in one languageDisabled in github.copilot.enableSet that language to true
    A suggestion seems to vanishPublic code filter is Block and it matchedExpected. The org chose Block
    Spinner, then errorsProxy or firewall blocks Copilot’s endpointsRead the logs, set http.proxy, ask IT to allow the endpoints
    Odd errors after an updateExtension out of date or mismatched with VS CodeUpdate the GitHub Copilot Chat extension and VS Code
    Chat or CLI missing, completions fineOrganization policy turned the feature offAsk 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

    Online retail

    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.
    Ready for more?The full lesson adds the technical explanation, when to use it, interview questions and revision notes.

    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.

    Question 1

    Question 1 of 5

    A developer receives GitHub Copilot inline suggestions in JavaScript and Python files but receives no suggestions in YAML files. No content exclusions apply to the YAML files. What is the most likely cause?

    Question 2

    Question 2 of 5

    An organization owner adds a content exclusion for /secrets/** in a repository. Ten minutes later, a developer who had Visual Studio Code open still receives suggestions in files under /secrets. What should the developer do first?

    Question 3

    Question 3 of 5

    After an office network change, GitHub Copilot stops returning suggestions for every developer in the office. Developers working from home are not affected. Where should a developer look first to identify the cause?

    Question 4

    Question 4 of 5 · Select 3

    A developer reports that GitHub Copilot provides no suggestions in any file. Which THREE items should you check? Each correct answer presents part of the solution.

    Question 5

    Question 5 of 5

    A developer opens config/secrets.js and notices that Copilot provides no suggestions. The Copilot status bar icon indicates that content is excluded for the file. Suggestions work in all other files. What should you conclude?

    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. 1.Where's the first place to look when Copilot stops?Show

      The Copilot status bar icon.

    2. 2.Which setting turns completions off for a language?Show

      github.copilot.enable.

    3. 3.What does a proxy error in the logs point to?Show

      A proxy or firewall blocking Copilot's endpoints.

    4. 4.How long can an exclusion change take to reach an open IDE?Show

      Up to 30 minutes.

    5. 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.

    Studying with a friend? Send them this lesson

    It's free and needs no sign-up. Their progress saves in their own browser.

    Lesson done? Make it stick with a quick gameSort It, Match the Pairs, Lightning Round and Who Am I? Earn XP and badges. Play ❯

    Install MSDEVBUILD Azure

    Free · no account · works offline

    Save the whole course for offline ›

    Hi, I’m your Nimbus

    Your study buddy. Pick what we do next.

    MSDEVBUILD · Multi-Stack Dev Build

    Sign in to MSDEVBUILD

    One account for Azure certifications and the blog: sign in here and you are signed in on both. Your XP, streak, practice deck and certificate stay in sync on every device. Optional: everything works without an account.