-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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 drop folder(s) into empty files explorer #38746
Comments
@bpasero I was looking into implementing this and wanted to check when is the window reload necessery now? Is it ever needed? When going from purple vscode to workspace is it needed? Strangely I get a method not implemented error If I doing everything without a reload
|
@isidorn that error seems to be from the recently pushed changes for PR reviews (@rebornix). A window reload is not needed if the dropped folders form a new untitled workspace, however not sure we want to do that all the time. E.g. if you drop just one folder, it would make sense to me that the window reloads to open that folder. If multiple folders are dropped, then we can transition into an untitled workspace. I think that code already exists when you drop folder(s) into the explorer. |
@bpasero thanks, however there is no code that does this afaik. Since in the explorer we are always at least in one folder so we always go to a workspace when adding. @rebornix do you need a seperate issue for the bug mentioned here? |
@isidorn thanks, I'll fix the exception real quick. |
@isidorn Btw there is a helper method to handle the drop of files or folders here: https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/browser/dnd.ts#L172. If you use that one, it automatically takes care of:
|
@bpasero thanks, this simplifies things a lot, was not aware of that helper class. |
When the workspace is empty - drag'n'drop doesn't work.
The text was updated successfully, but these errors were encountered: