-
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
No longer possible to drop a folder into Code to open folder #32537
Comments
Ah that's probably unrelated. |
We could take this as an opportunity to improve the current behavior, especially since the new
|
@Tyriar yes, that is my thinking as well |
@bpasero so is the plan to tweak the behavior to allow opening folders via DND with Electron 1.7.*? Do you need any help with that? |
@Tyriar I'd expect a similar behavior to Sublime Text: Folder dragged into Explorer: Add to workspace. Folder dragged into Editor: Open the folder instead. Opening all files is a very bad idea, what if you drag a folder with node_modules ? it'll be hell. Btw, thanks @bpasero for referencing my issue here :) |
@darkguy2008 yeah good point, the main thing is squeezing in the "open folder" concept in there somehow as right now that's the only thing that's done (and it will require a full window reload for some time). |
@Tyriar I am waiting for Electron to revert the change of Chrome and if that does not happen I need to look into a fix. |
Pushed a fix that handles this, differently from before though (we cannot support our old model anymore given the Electron update).
What we gain is the ability to add folders to a workspace by dropping to the explorer, which is cool. What we loose is the visual feedback when you drag that a folder is being dragged. You are now under the impression that you can always drop a folder onto the explorer and the editor will show unhelpful feedback when you drop a folder near the edge of an existing editor by indicating a split operation (which does not make much sense for folders). |
Verification: ensure that you can open a single folder by dropping it into the editor area (either with editors opened or not). |
This is a regression from the Electron update and seems to be electron/electron#9840
I would argue that this blocks an Electron update unless we find a workaround. The problem is that during drag we no longer can find out if the dragged resource is a file or folder. Only when dropping it seems we can find out.
We need to know if a folder is dropped vs file to show different drop feedback:
/cc @kieferrm @Tyriar @roblourens
The text was updated successfully, but these errors were encountered: