-
Notifications
You must be signed in to change notification settings - Fork 29.5k
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
Allow to DND multiple root-folders #44554
Comments
I justr tried writing this and it is not so trivial to put them in the right order -> will overcomplicate the code -> backlog. |
@isidorn yeah I would not expect that 2 calls to the workspace editing service is clever, but if you call it once with the right order after the drop operation it should work, no? Can you not keep an array of workspace folders when the drag operation starts and when you drop you simply call the splice method on that array to reflect the change and then just give that array to the workspace editing service to replace them all? |
@bpasero in theory yes, in practice it is very tedious code. "Simply call the splice method" is not so trivial, I tried. |
@isidorn ok lets look into it next week when we are both in the office |
@bpasero I see you are very passionate about this. I can do a PR and then you will see how the code is clunky. And potentially improve it |
@isidorn yeah, I am a little passionate about this feature, but more passionate about why the code is complex :). I am happy to check out a PR (even if prototypal) so understand the complexity. |
Testing #29715
I see no reason why we would not support to DND multiple root folders. The API is easy enough to use, just splice the folders by removing all and then adding all in the right order. We do the diff and will only send the correct change event, you don't have to compute it.
The text was updated successfully, but these errors were encountered: