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
Suggestion list jumps between below and above position #27649
Comments
well yes. The long docs cannot be fit under the cursor, so the widget moves above. This behavior exists today as well without the docs expanded. Just above the bottom of the editor, type something that gives you say 4 suggestions and all fit below the cursor. Now keep backspacing, suggestion list grows and widget goes above the cursor. One thing we can do here is, that once the widget moves above the cursor, it remains above even if the next docs is small enough to fit below the cursor. Thoughts? |
Sounds good, that would improve these cases. |
From @roblourens in #28140 |
Fixes: microsoft#27649 Long docs when cursor is near the bottom will jump to the top to allow for more space, but if the next suggestion docs are smaller it will jump back down creating a jarring experience when flipping through suggestions quickly. Pin the widget to the top if it flips to the top once so that the experience is more fluid. This is just one way we might handle it. Open to suggestions as this is my first PR to VSCode.
Fixes: #27649 Long docs when cursor is near the bottom will jump to the top to allow for more space, but if the next suggestion docs are smaller it will jump back down creating a jarring experience when flipping through suggestions quickly. Pin the widget to the top if it flips to the top once so that the experience is more fluid. This is just one way we might handle it. Open to suggestions as this is my first PR to VSCode.
Testing #27315
It seems to be triggered by an entry with a long doc:
The text was updated successfully, but these errors were encountered: