Question 420
Two independently scoped GitHub Copilot requirements are being reviewed. Requirement A: A developer's chat replies ignore the repository's coding conventions. Requirement B: A TypeScript component shows an inline suggestion based on the wrong public API shape. Which TWO responses fulfill the paired requirements?
Explanation
Correct Answers
This action addresses requirement B: A TypeScript component shows an inline suggestion based on the wrong public API shape. Context quality can improve suggestions but still requires compilation. Verify by observing: The completed method type-checks against the installed library definitions.
This action addresses requirement A: A developer's chat replies ignore the repository's coding conventions. Repository instruction files provide scoped context only on supported surfaces; they are not a deterministic enforcement guarantee and can conflict with higher-priority settings. Verify by observing: A fresh supported Copilot interaction references the applicable instruction file and follows the representative project convention after developer review.
Incorrect Answers
Public-code match policies govern indexed GitHub suggestion similarity where supported, while content exclusions govern eligible prompt/file contexts and are separate controls. The two requirements instead call for these controls: (A) Add tested repository-wide instructions at `.github/copilot-instructions.md` (with supported path-specific rules when necessary), and confirm the relevant Copilot client actually loads that guidance; (B) Provide the correct type definitions and current call site context before regeneration.
Chat benefits from explicit related context instead of relying on a bare one-line prompt. The two requirements instead call for these controls: (A) Add tested repository-wide instructions at `.github/copilot-instructions.md` (with supported path-specific rules when necessary), and confirm the relevant Copilot client actually loads that guidance; (B) Provide the correct type definitions and current call site context before regeneration.
Copilot entitlement and policy restrictions are independent controls. The two requirements instead call for these controls: (A) Add tested repository-wide instructions at `.github/copilot-instructions.md` (with supported path-specific rules when necessary), and confirm the relevant Copilot client actually loads that guidance; (B) Provide the correct type definitions and current call site context before regeneration.