Clarify and consolidate documentation for content exclusions for the different GitHub Copilot modes
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 38/100
- Tipo de issue
- Documentação
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- github
- Domínio
- documentation
Direção de pesquisa
Comece comparando as duas páginas do GitHub Docs vinculadas na issue e, em seguida, analise a issue relacionada 40951 e o pull request fechado 40952 junto com as discussões referenciadas do VS Code. Confirme os modos e ambientes compatíveis com os maintainers antes de consolidar as informações em uma matriz de suporte; considera-se concluído quando a documentação resolve as contradições e declara claramente as limitações.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Code of Conduct
- I have read and agree to the GitHub Docs project's Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/copilot/how-tos/configure-content-exclusion/exclude-content-from-copilot#configuring-content-exclusion-for-your-repository (accessed on 29th January 2026)
https://docs.github.com/en/copilot/concepts/context/content-exclusion#availability-of-content-exclusion (accessed on 29th January 2026)
What part(s) of the article would you like to see updated?
Problem Description
The current documentation around GitHub Copilot content exclusion appears to be inconsistent and, in some cases, contradictory across different official sources. This makes it difficult to understand which Copilot tools and modes actually respect content exclusion rules.
Conflicting Documentation
Configure content exclusion (GitHub Docs)
This page states that GitHub Copilot CLI, Copilot coding agent, and Agent mode in Copilot Chat in IDEs do not support content exclusion, and refers to additional documentation for clarification.
Content exclusion concepts and availability (GitHub Docs)
This page indicates that content exclusion is available in Copilot Chat for Visual Studio Code, but includes the following note:
- Content exclusion is in public preview on the GitHub website and GitHub Mobile.
- Content exclusion is currently not supported in Edit and Agent modes of Copilot Chat in Visual Studio Code and other editors.
Copilot Agent Mode (Microsoft Learn)
This documentation states that Agent mode cannot access files and directories excluded through file exclusion, which suggests that content exclusion is respected by Agent mode, at least in Visual Studio.
Observed Behavior
When testing a simple scenario, content exclusion appeared to work across all Copilot modes, including those documented as unsupported. This may indicate:
- Partial or implicit support depending on the tool or environment
- Differences between file exclusion and content exclusion
- Outdated or incomplete documentation
For the testing scenario we added an GitLab Repository for the content exclusion in the GitHub Copilot Business content exclusion setting and tested for the ask, edit and agent mode in the VS Code Chat if the file can be explained. For all the modes the response said that no context was attached even when i manually drag and dropped the file into the chat window.
Requested Improvement
The documentation should be updated to clearly and explicitly describe:
- Which Copilot tools and modes support content exclusion
- Which modes do not support it, and in what way
- Whether behavior differs between:
- Chat, Edit, and Agent modes
- IDEs (VS Code, Visual Studio) and the GitHub website
- Any known limitations, caveats, or indirect behaviors that may cause content exclusion to appear to work even when it is not fully supported
A concise support matrix or table outlining Copilot mode vs. content exclusion behavior would greatly improve clarity and help users avoid incorrect assumptions.
Clear and accurate documentation is particularly important for business and enterprise users, as content exclusion is often a critical compliance and data-protection requirement. Organizations need to clearly understand which Copilot modes and tools can be safely used while content exclusion is enabled, and which modes may bypass or partially ignore these rules. Without this clarity, there is a risk of unintentional exposure of sensitive or proprietary information and uncertainty about whether Copilot usage complies with internal policies and regulatory obligations.
Related Issues and Pull Requests
- GitHub Docs issue: https://github.com/github/docs/issues/40951
- GitHub Docs pull request (closed): https://github.com/github/docs/pull/40952
- VS Code issue: https://github.com/microsoft/vscode/issues/278829
- VS Code Copilot release issue: https://github.com/microsoft/vscode-copilot-release/issues/12711
Additional information
No response
- Linguagem predominante
- TypeScript
- Estrelas
- 20.9k
- Forks
- 68.9k
- Merge médio
- 8h 43min
- PRs com merge (30d)
- 107
Preparar o ambiente
Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.
- Inclui um Dockerfile ou arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de github/docs
-
GitHub ARC authentication should cover using GitHub App on Personal AccountTalvez já em andamento @VardyNg assumiu há 3 dias. Abertacontent triage
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 85/100
Mantenedores costumam responder em até 1 dia
-
Add user-level custom agent configurationTalvez já em andamento @ashis-baral assumiu há 3 dias. Abertabuilder persona content copilot
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 90/100
Mantenedores costumam responder em até 1 dia
-
Conflicting info regarding open PR limit for Dependabot security updatesTalvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. Abertacontent driver persona never-stale
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
github/docs#46116 · 4 comentários ·
Mantenedores costumam responder em até 1 dia
-
localization never-stale
Dificuldade 2/5 1-2 dias Facilidade para iniciantes 72/100
github/docs#45949 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
content localization never-stale
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
github/docs#45858 · 2 comentários · 1 reação ·
Mantenedores costumam responder em até 1 dia
Todas as issues de github/docs
Issues semelhantes
-
level/task reporter/qa type/bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
wazuh/wazuh-dashboard-plugins#9310 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
cybersemics/treecrdt#267 ·
-
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 85/100
wiz-sec-public/backstage-plugin-wiz#16 · 1 comentário ·
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
solana-foundation/solana-com#2245 ·
Mantenedores costumam responder em até 1 dia