-
Notifications
You must be signed in to change notification settings - Fork 28.8k
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
Scroll focus is lost when adding items dynamically to end of quickpick list #131457
Comments
Maybe related to #109969 |
Yeah this is a tricky one... I'm wondering if we can support What do you think @chrmarti? |
Also related #76193 |
Actually I would also like the functionality to edit the item in place without scroll reset, as visible in the GIF. So just append won't do it. |
|
I have another suggestion I left here 🙂 #109969 (comment) |
The overall fix for this issue is being tracked in: #132068 |
Nice, can I somehow download the Insiders now? Or do I have to wait for tomorrow's Insider release? |
@karrtikr you can run from sources or wait for tomorrow's insider release |
API works great. Only downside I see is that the scroll focus is not maintained when elements are deleted in the middle of the list, i.e the visible items change. |
@karrtikr curious what you see... Does it jump up to the top? A gif/video would be ideal. |
It doesn't jump to the top, it just shifts a bit. I'll see if I can get the GIF. |
I have a list which populates after I click the refresh button. I scroll to the middle of the list and slowly start deleting items at random over a course of 30 seconds, this is what I see: I guess it's expected since there is no way for VSCode to know if these are new items everytime I assign |
Yep I agree. Thanks for sharing! |
Hi Python extension dev here 👋
As mentioned in #21372 (comment), I tried attempting to implement dynamic quickpick using the API
createQuickPick
and then adding elements to the end of the quickpick list doing something like,Although if a user happens to scroll down the list while the list is loading, the scroll focus is reset to the top position every time the quickpick list is edited, even though no active item is present.
In case an active item is present, the reset position always focuses on the item. I request an API to add elements to the list in such a way that the scroll doesn't loose focus.
cc @jrieken
The text was updated successfully, but these errors were encountered: