-
Notifications
You must be signed in to change notification settings - Fork 28.7k
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
Have a way to disable max-height on comments #181846
Comments
Generally we try not to add API unless we see a clear case for having it. At the time @gjsjohnmurray suggested the max height I wasn't aware of a use case that would require a comment peek view to have a larger size. @kazemicode your case makes sense, and makes the case for having API for this. I would make this API rather than user configurable. |
Yes, making the max-height configurable via the API makes perfect sense, since any extension can be configured with that functionality to set a max-height attribute that makes sense for the use case. @alexr00 Would the default behavior go back to expanding the height with the content? |
@kazemicode I'm not sure yet which would be default. I will discuss with our UX folks and see what they prefer. |
@alexr00 My humble preference would be to adopt the old behavior as the default. Though the CodeTour extension is open source, it’s only seen one update in the past year. My team has a stale PR from 2021 on the CodeTour repo that was never commented on, so I’m afraid that even if we opened a PR with a fix for the max-height problem, it might not ever get accepted and merged. On the other hand, my team has been discussing forking CodeTour so that we can control the addition of new functionality and bug fixes. |
There wasn't enough interest in adding API for this, so I added the user setting |
@alexr00 thanks! Is |
It is a boolean and the default is true, meaning the max height of a comment will be 20em. |
This bug has been fixed in the latest release of VS Code Insiders! @kazemicode, you can help us out by commenting If things still don't seem right, please ensure you're on version b4952d1 of Insiders (today's or later - you can use Happy Coding! |
/verified Works great! Thanks! |
Thanks for verifying! |
PR #180044 introduced a max-height on comments, which goes against my team's use case when using the CodeTour extension. Since our tours have animated GIFs that support our hands-on coding labs, the reduced max-height makes it impossible for a user to see entire images in the comment frame at once, which imposes a negative learner experience. (See: https://www.youtube.com/watch?v=h0F8_-Te8p4 for comparison across versions).
Proposed feature is to allow a user to set a max-height rather than imposing a max-height.
The text was updated successfully, but these errors were encountered: