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
Set a max-height on comments and add vertical scrolling (#174629) #180044
Conversation
/assign @alexr00 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR, it works great! Can the arrow keys be used to control scroll when the comment is focused?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thank you!
@alexr00 I'm willing to take a shot at this if you'd like it before merging. I didn't find any sign of your horizontal scroll implementation supporting it though, so I don't have a model to copy. |
Currently, once the user has focused on a comment in a thread the arrow keys navigate to the next or previous comment in the thread: vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.ts Lines 77 to 89 in 0724039
Up- / down-arrow navigation between comments in a thread also happens when the focused comment has been toggled into edit mode. This means a keyboard-only user can only navigate to the next line of a multi-line comment by using the right-arrow key repeatedly. Also, I didn't find a keyboard-only way to set focus into a comment in a thread. So perhaps it's premature to be worrying about keyboard-based scrolling of a scrollable display-mode comment which this PR introduces. Instead I suggest opening an issue about accessibility of comments in general, and merging this PR as-is. |
You should be able to tab and arrow through them. |
But how do I get focus into the zonewidget in the first place, assuming I start in the editor and run |
Command "Go to Next Comment Thread". |
@alexr00 many thanks for accepting this PR. Now it's landed in Insiders I've posted about it here: https://community.intersystems.com/post/upcoming-vs-code-enhancement-improves-gj-codespex-experience |
@alexr00 and @gjsjohnmurray I think this PR actually went against my team's use case, where we PREFER the longer comment height to show animated GIFs when we use the CodeTour extension to walk our learners through hands on labs. The max height now means that our learners cannot see the full image on their screen, which detracts from our learner experience. Is there a way for the end user to specify a max height instead of imposing a default max height? |
This PR implements #174629, setting a maximum visible height of comments, after which a vertical scrollbar will appear.