microsoft / vscode-pull-request-github

GitHub Pull Requests for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-pull-request-github
MIT License
2.3k stars 574 forks source link

Mark Current File as Viewed and Move to the Next File in the Pull Request #6249

Open TristenFielding opened 6 days ago

TristenFielding commented 6 days ago

I am trying to create a single command (F6) that will

  1. Mark the file as Viewed and then
  2. Move to the next file in the PR.

Yet, I am having issues with both commands; see #6248 and #6247.

Here's the full command definition.

    {
        "key": "f6",
        "command": "runCommands",
        "when": "textCompareEditorVisible",
        "args": {
            "commands": [
                "pr.markFileAsViewed",
                "pr.goToNextDiffInPr"
            ]
        }
    }

Is there a better way to achieve this goal?

alexr00 commented 5 days ago

Those commands both only work if you have checked out the PR. Does your command work if you check out the PR?