Skip to content
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

Cannot rearrange root folders #29715

Closed
alexdima opened this issue Jun 28, 2017 · 12 comments
Closed

Cannot rearrange root folders #29715

alexdima opened this issue Jun 28, 2017 · 12 comments
Assignees
Labels
feature-request Request for new features or functionality file-explorer Explorer widget issues release-notes Release notes issues verification-needed Verification of issue is requested verified Verification succeeded workbench-multiroot Multi-root (multiple folders) issues
Milestone

Comments

@alexdima
Copy link
Member

Testing #29176

To have a certain root folder order, today, special care must be taken to open root folders in a specific order. It would make sense to be able to sort them in the Explorer and have them presented in a different order than they were opened.

@vscodebot vscodebot bot added the workbench label Jun 28, 2017
@alexdima alexdima assigned isidorn and unassigned bpasero Jun 28, 2017
@bpasero
Copy link
Member

bpasero commented Jun 28, 2017

I think it would be cool to be able to use drag and drop to reorder root folders.

@bpasero bpasero added file-explorer Explorer widget issues workbench-multiroot Multi-root (multiple folders) issues labels Jun 28, 2017
@isidorn isidorn added the feature-request Request for new features or functionality label Jun 28, 2017
@isidorn isidorn added this to the July 2017 milestone Jun 28, 2017
@isidorn
Copy link
Contributor

isidorn commented Jul 20, 2017

@bpasero do we have new API support for this? Since now all folders are treated equal this should be possible

@bpasero
Copy link
Member

bpasero commented Jul 20, 2017

@isidorn there is no explicit API to change the sorting order of root folders, it would probably make sense @sandy081 to add this to WorkspaceEditingService so that we can use it in the explorer.

Btw I do think that we need to revisit how the drop feedback for the tree is working in the case of rearranging root folders: Currently we just select the drop target, which implies that you drop a folder or file into that target folder. That imho does not make much sense when rearranging root folders.

Instead I would expect a new visual drop indicator to show up as e.g. Windows does it:
flicker_chrome58

@sandy081 sandy081 self-assigned this Jul 20, 2017
@sandy081
Copy link
Member

I will work from an API side to change the order

@isidorn
Copy link
Contributor

isidorn commented Jul 20, 2017

Yes the line drop indicator would be more fitting.
@sandy081 let me know once we have api for this and I can look into it from the UX side. Thanks

@isidorn
Copy link
Contributor

isidorn commented Sep 21, 2017

Moving to october, @sandy081 ping me when there is api to change the order :)

@isidorn
Copy link
Contributor

isidorn commented Oct 27, 2017

Moving to november :)

@isidorn
Copy link
Contributor

isidorn commented Jan 31, 2018

Reordering should preserve the expansion state of folders. Since we know have api for this I will tackle this in february

@lig
Copy link

lig commented Feb 2, 2018

Sorting alphabetically by default is sane option even without this being implemented

@bpasero
Copy link
Member

bpasero commented Feb 5, 2018

@isidorn @sandy081 fyi I pushed a change to have WorkspaceService.updateFolders() that allows to add and remove at the same time with only single write happening to the workspace file (and proper events). I guess that method could be used to support rearranging of roots.

@isidorn
Copy link
Contributor

isidorn commented Feb 5, 2018

@bpasero thanks, I was aware of that thus I assigned this to the february milestone.

@isidorn
Copy link
Contributor

isidorn commented Feb 16, 2018

We now support drag and drop of root folders in the explorer.

Note that I have disabled this behavior when multiple roots are selected - because of the API and this being done sequantally it is basically mental masturabation to get this working and I do not see a use case atm.

Try it out in insiders from monday and let me know how it goes.

@bpasero thanks for the API, however not the nicest to program against, I had to write a clunky for loop in order to make this work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality file-explorer Explorer widget issues release-notes Release notes issues verification-needed Verification of issue is requested verified Verification succeeded workbench-multiroot Multi-root (multiple folders) issues
Projects
None yet
Development

No branches or pull requests

5 participants