Question 400
A reviewer needs a focused diagnosis and proof of resolution for: A team wants to know why irrelevant neighboring code appears in the context for an inline suggestion. Which check-to-acceptance pair addresses that specific condition?
Explanation
Correct Answer
The read-only check (inspect the open-file region, available context and the generated suggestion against the task) isolates the relevant issue, and the acceptance evidence (the revised suggestion aligns with the local function contract and tests) shows that its corresponding fix worked.
Incorrect Answers
This diagnostic and result belong to a different incident: A Copilot answer proposes a change in a file that was not open, selected or provided to the chat. For 'A team wants to know why irrelevant neighboring code appears in the context for an inline suggestion', examine inspect the open-file region, available context and the generated suggestion against the task and confirm that the revised suggestion aligns with the local function contract and tests.
This diagnostic and result belong to a different incident: A chat request references a production credential stored in a repository file and asks for a sample connection string. For 'A team wants to know why irrelevant neighboring code appears in the context for an inline suggestion', examine inspect the open-file region, available context and the generated suggestion against the task and confirm that the revised suggestion aligns with the local function contract and tests.
This diagnostic and result belong to a different incident: An AI suggestion looks like an exact copy of a public helper even though the user's current file was private. For 'A team wants to know why irrelevant neighboring code appears in the context for an inline suggestion', examine inspect the open-file region, available context and the generated suggestion against the task and confirm that the revised suggestion aligns with the local function contract and tests.



GitHub Copilot Practice Tests