Clarify and consolidate documentation for content exclusions for the different GitHub Copilot modes
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 38/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- github
- Lĩnh vực
- documentation
Hướng nghiên cứu
Bắt đầu bằng cách so sánh hai trang GitHub Docs được liên kết trong issue, sau đó xem xét issue liên quan 40951 và pull request đã đóng 40952 cùng với các cuộc thảo luận VS Code được tham chiếu. Xác nhận các chế độ và môi trường được hỗ trợ với các maintainer trước khi hợp nhất hướng dẫn vào một ma trận hỗ trợ; công việc được xem là hoàn tất khi tài liệu giải quyết các mâu thuẫn và nêu rõ các giới hạn.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- TypeScript
- Star
- 20.9k
- Fork
- 68.8k
- Merge trung bình
- 13 giờ 43 phút
- Pull request đã merge (30 ngày)
- 110
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của github/docs
-
triage
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
-
localization
Độ khó 2/5 1-2 ngày Mức phù hợp với người mới 72/100
-
builder persona
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
content localization
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
content localization
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
Issue tương tự
-
[Bug]: Discord Activity titles with emoji are rejected as over 80 characters when they are not Đang mởclawsweeper:linked-pr-open clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:message-loss issue-rating: 🦞 diamond lobster maturity:stable P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Eynzof/Hermes-CN-Desktop#616 ·
-
ZCode 3.14.3 に対応する Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
supermomonga/zcode-acp#24 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
growthbook/growthbook#7100 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
lobehub/lobe-icons#422 · 1 bình luận ·