Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 9, 2025

Plan: Add Auto-Reveal Setting for PR Changes View

Based on the issue and code analysis, I need to:

  • Add new setting githubPullRequests.fileAutoReveal to package.json configuration (default: true)
  • Add localization strings for the new setting to package.nls.json
  • Add setting key constant to src/common/settingKeys.ts
  • Update src/view/treeNodes/repositoryChangesNode.ts to use the new setting instead of explorer.autoReveal
  • Test the functionality to ensure files are auto-revealed when the setting is enabled
  • Verify the setting can be toggled on/off

Current Status: The auto-reveal functionality already exists in the codebase (repositoryChangesNode.ts lines 53-66), but it currently uses VS Code's explorer.autoReveal setting. Need to add a dedicated extension setting with default value true.

Original prompt

This section details on the original issue you should resolve

<issue_title>Follow open files in the PR changes view</issue_title>
<issue_description>Requested by @digitarald:

When a file that's in the currently checked out PR is opened (even when it's not a diff) we should highlight the file in the "Changes" view if it's open.
</issue_description>

<agent_instructions>Add a setting for auto reveal. Default to true.</agent_instructions>

Comments on the Issue (you are @copilot in this section)

@alexr00 We already do this. @alexr00 Here's what I see:

Recording 2023-12-15 at 18 00 01

Can you share a gif of what you're seeing?</comment_new>


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Follow open files in the PR changes view

2 participants