A developer is working in order_service.py and has 12 unrelated files open in other tabs, including several from an old prototype. Copilot's inline suggestions keep referencing deprecated prototype APIs. Which action best addresses this?
- A. Disable Copilot's neighboring-tabs feature globally in the organization policy
- B. Rename the prototype files with a
_deprecatedsuffix so Copilot ignores them - C. Close the irrelevant prototype tabs and keep only files related to the current task open✓ Correct
- D. Add a comment at the top of
order_service.pysaying 'Copilot: ignore other open files'
Explanation
Copilot uses neighboring open tabs as a context source, so irrelevant open files can pollute suggestions; closing them is the documented context-optimization practice. There is no organization policy toggle that disables neighboring-tabs context, and doing so would also remove useful context. Renaming files does not exclude them from context — file names are themselves weak signals, and the content is still available. A natural-language 'ignore other files' comment is not a supported directive and Copilot will not honor it as an exclusion rule.