Skip to content

Follow open files in the PR changes view #4521

Closed

Description

@alexr00

Requested by Harald Kirschner (@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.

Activity

  1. added
    feature-request
    on Feb 13, 2023
  2. diminutivesloop commented on Sep 22, 2023

    @diminutivesloop

    This would be helpful for maintaining context when jumping between files via "go to definition".

  3. alexr00 commented on Dec 15, 2023

    @alexr00
    MemberAuthor

    We already do this.

  4. diminutivesloop commented on Dec 15, 2023

    @diminutivesloop

    Alex Ross (@alexr00) Are you sure this already works? I'm on the pre-release version (v0.79.2023121409) and files are still only highlighted in the changes view if I open them by directly clicking in that view.

  5. alexr00 commented on Dec 15, 2023

    @alexr00
    MemberAuthor

    Here's what I see:

    Recording 2023-12-15 at 18 00 01

    Can you share a gif of what you're seeing?

  6. diminutivesloop commented on Dec 18, 2023

    @diminutivesloop

    Ok looks like it works when I re-enable explorer.autoReveal. I believe I disabled that setting because I didn't like the explorer jumping around when I switched files, but I'll try out re-enabling it and see if it's still a problem. I wonder if it would make sense to have a separate version of that setting for this extension.

  7. diminutivesloop commented on Jan 17, 2024

    @diminutivesloop

    So I've tried re-enabling explorer.autoReveal and it's honestly pretty annoying. Would love to have a separate option for this extension.

  8. modified the milestones: Backlog, on Dec 18, 2025
  9. alexr00 commented on Jan 5, 2026

    @alexr00
    MemberAuthor

    To verify:

    1. Install the latest pre-release version of GitHub Pull Requests
    2. Open a folder which contains a GitHub repo
    3. Set these settings:
    "githubPullRequests.fileAutoReveal": true,
    "explorer.autoReveal": false
    
    1. Check out a PR from the Pull Requests view
    2. Open the "Changes in Pull Request" view
    3. Open a file that's touched by the PR using quick open verify that it's highlighted in the "Changes" view
    4. Set
    "githubPullRequests.fileAutoReveal": false,
    
    1. Open a file that's touched by the PR using quick open verify that it's not highlighted in the "Changes" view
  10. added
    verification-needed
    on Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestgood first issueverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions