Microsoft GH-300 Question Answer
When can GitHub Copilot still use content that was excluded using content exclusion?
If the contents of an excluded file are referenced in code that is not excluded, for example function calls.
When the repository level settings allow overrides by the user.
If the content exclusion was configured at the enterprise level, and is overwritten at the organization level.
When the user prompts with @workspace.
GitHub Copilot can still use excluded content if it is referenced in code that is not excluded, such as function calls.
TESTED 11 Aug 2025
Copyright © 2014-2025 ACE4Sure. All Rights Reserved