Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark as viewed close file option #3513

Closed
brucejo75 opened this issue May 3, 2022 · 4 comments · Fixed by #4081
Closed

Mark as viewed close file option #3513

brucejo75 opened this issue May 3, 2022 · 4 comments · Fixed by #4081
Assignees
Labels
feature-request Request for new features or functionality verification-needed Verification of issue is requested verified Verification succeeded
Milestone

Comments

@brucejo75
Copy link

brucejo75 commented May 3, 2022

Hi All, Thanks for this fantastic extension!

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)

While reviewing the code I would like the file to close after each review is complete. Which does not happen if "workbench.editor.enablePreview": false.

Pardon me if this feature exists, I could not find it.

What I think would be valid options:

  1. Close the window when I select Mark as Viewed &/or close the file under review when I select another file for review.
  2. New options setting githubpullrequest.editor.enablePreview (Default: true)
  3. Put the editor into enablePreview mode during any github pull request review with no user option to change.

For a user like me #1 seems optimal. As I may have other windows open other than the review window.

But I think any of the solutions would be a big improvement for my scenario.

Workaround

Just review a batch of files then close all in the window. (but this gets rid of some other windows I have open, no big deal really)

Thanks!

@alexr00 alexr00 added the feature-request Request for new features or functionality label May 5, 2022
@alexr00 alexr00 modified the milestones: May 2022, On Deck May 5, 2022
@alexr00 alexr00 self-assigned this Oct 19, 2022
@alexr00 alexr00 modified the milestones: On Deck, October 2022 Oct 19, 2022
alexr00 added a commit that referenced this issue Oct 19, 2022
alexr00 added a commit that referenced this issue Oct 19, 2022
@brucejo75
Copy link
Author

Wow, look forward to trying it!

@alexr00
Copy link
Member

alexr00 commented Oct 19, 2022

When you mark a file as viewed through the active editor menu bar or through a keybinding, the file will close. When you mark it as viewed through the tree view then it will not close. If a setting is needed I'll add one, but my hope is that this behavior is better for almost everyone.

@brucejo75
Copy link
Author

Thanks @alexr00!

@alexr00
Copy link
Member

alexr00 commented Oct 24, 2022

To verify:

  • Open a pull request in VS Code
  • Open a file that's included in the pull request
  • Mark the file as viewed from the active PR tree view. Verify that the file is not closed.
  • Open a file that's included in the pull request.
  • Mark the file as viewed using either a keyboard shortcut that you've configured or the editor toolbar action. Verify that the file is closed.

@alexr00 alexr00 added the verification-needed Verification of issue is requested label Oct 24, 2022
@hediet hediet added the verified Verification succeeded label Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality verification-needed Verification of issue is requested verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants