Add option to automatically mark file as reviewed on open #8238
+591
−524
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implementation Plan for Auto-Mark Files as Viewed on Open
githubPullRequests.markAsViewedOnOpento package.jsonvscode.workspace.onDidOpenTextDocumentin extension.tspullRequest.markFiles()when a PR file is openedSummary
This PR adds a new configuration setting
githubPullRequests.markAsViewedOnOpenthat allows users to automatically mark files as viewed when they open them in the editor. This is particularly useful for reviewing large pull requests with many files.Changes Made
githubPullRequests.markAsViewedOnOpensetting (boolean, default: false) in package.json with localization supportworkspace.onDidOpenTextDocumentevents in extension.tsThe implementation follows the existing patterns in the codebase and integrates seamlessly with the existing mark-as-viewed functionality.
Quality Checks
<issue_title>Automatically set reviewed on file view</issue_title>
><issue_description>Related to scenario described here: #3513
>
> >I am in the process of reviewing a change to over 200 files. (yes, I know...)
> >
> >I run VSCode with
"workbench.editor.enablePreview": false(yes, I know.. I am a tab binger)>
> A "nice to have" would be an option to automatically mark as viewed when I open the file. Maybe
githubpullrequest.markAsViewedOnFileOpen, for this large checkin review a lot of workflow friction would be eliminated.>
> Thanks!</issue_description>
>
> ## Comments on the Issue (you are @copilot in this section)
>
>
><comment_new>@alexr00
> @joshuaobrien yes, I would accept a PR for this feature.</comment_new>
>
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.