Microsoft GH-300 Question Answer
When can GitHub Copilot still use content that was excluded using content exclusion?
When the user prompts with @workspace.
When the repository-level settings allow overrides by the user.
If the contents of an excluded file are referenced in code that is not excluded, for example function calls.
If the content exclusion was configured at the enterprise level, and is overwritten at the organization level.
“If excluded content is referenced by non-excluded code, such as through function calls, Copilot may still use that reference context.”
This confirms that excluded content can indirectly appear if referenced elsewhere.
TESTED 28 Jun 2026
Copyright © 2014-2026 ACE4Sure. All Rights Reserved