-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
The drag and drop
function is no longer functional in the latest code
#219047
Comments
Does the technique described at #213045 (comment) get you to the exact commit where the problem appeared? |
51917e8 |
I believe it is expected operating behavior @mjbvz said this on the original issue #182449
Also the tooltip indicates that the user should hold shift to drop a file when using the editor view. Maybe we should include a similar tooltip when dropping into webviews? [edit] I realize now that this issue was due to ALL webview drag events being captured by my drag event listener and pushed up to VSCode. We only want to handle drag events that have a file attached. and I want to apologize to @wszgrcy for not understanding the issue originally. |
Hello swordensen, I also meet this situation when I want to drag files on to webView, and I saw you already fixed and merged in #209211. But I didn't find related information in the change log from v1.90.1 and v1.90.2. Do you have a plan to release the pull request? |
not editor=>webview or webview => editor; |
Holding shift to drop is expected when dropping external content into a webview, such as from the explorer. However it's unexpected here as there's no file content on the drag event that could be opened in an editor. That's why you don't see even any overlay that mentions holding shift I'm going to revert #209211 for now until we can get a more reliable fix for the original issue |
I see I didnt understand the issue. I didn't run into it myself because I was only dealing with dragging and dropping files. Maybe we should only bubble up the drag event if the user is dragging a file. [edit] I added a video of the problem and I think I know how to fix it. Recording.2024-07-03.094541.1.mp4 |
Okay, so I updated my new PR so that only drag events coming from outside the editor with a file will be consumed by the new drag event listener. Now internal drag events will not be blocked. AND if you happen to drag and drop a file it will not open on its own. Recording.2024-07-03.104047.mp4 |
I'm unable to view the full mp4s or download them on MS Edge on Windows. I wonder if they got corrupted. |
Kindly make an immediate release with the solution as this is blocking our production release for a plugin which uses drag drop feature. |
The issue has been closed and verified, so this issue should be fixed in the incoming Stable Recovery release, coming this week. |
[like] Sachin Shivagonda Ibrahimpur reacted to your message:
…________________________________
From: Michael Lively ***@***.***>
Sent: Tuesday, July 9, 2024 8:25:22 PM
To: microsoft/vscode ***@***.***>
Cc: Sachin Shivagonda Ibrahimpur ***@***.***>; Comment ***@***.***>
Subject: Re: [microsoft/vscode] `The drag and drop` function is no longer functional in the latest code (Issue #219047)
The issue has been closed and verified, so this issue should be fixed in the incoming Stable Recovery release, coming this week.
—
Reply to this email directly, view it on GitHub<#219047 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALKQNNMZY7TZKG7FEERQFYTZLRBLFAVCNFSM6AAAAABKA5EKI2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJYGY3DOMZTGI>.
You are receiving this because you commented.Message ID: ***@***.***>
------------------------------------------------------------------------------ Disclaimer: The following terms shall apply to the recipients of the mails received from Celestial Systems. The content of this email is intended for the person or entity to which it is addressed only. This email may contain confidential information. If you are not the person to whom this message is addressed, be aware that any use, reproduction, or distribution of this message is strictly prohibited. If you received this in error, please contact the sender and immediately delete this email and any attachments ----------------------------------------------------------------------------------------
|
@mjbvz This problem was reintroduced in vscode 1.92.0 The way that I can reproduce is to do an interactive rebase (GUI) via GitLens |
I thought this might happen. If the maintainers want to merge the recovery branch into main (so the previous fix sticks) I do not mind handling conflicts on my fix PR #219148 |
* preventing default on drop events to prevent files from opening in a new window * adding a fix that addresses microsoft#219047 --------- Co-authored-by: Matt Bierner <matb@microsoft.com>
I also noticed that the problem was re-introduced in version 1.92.0 using ThunderClient. It worked fine in vscode 1.91.0. Please re-open this issue. |
afaik the bug was introduced in 1.91.0 resolved in 1.91.1 and re-introduced in 1.92.0 . A fix has been merged into main but, it has not been released. However, if you can re-create the issue by building from source with the latest changes please let me know and I will look into it. In the meantime, we have to wait for the next release/patch before the fix is available. |
Hi all, Logic Apps vscode extension is also having trouble with the drag and drop experience no working inside our own webview. I tested in version 1.92.0. This really hits our main experience in the extension, therefore users can't use it correctly. Could you please make a hotfix for the 1.92.x version? . Azure/LogicAppsUX#5265 |
This is now fixed in vscode 1.92.1. Thank you so much! |
Awesome! If anyone encounters any other issues with Drag and Drop (with extensions) please open a new issue and tag me. I can probably fix it pretty quick as I am fairly familiar with the nuances at this point. |
Does this issue occur when all extensions are disabled?: Yes
work success
work failed
This issue occurs when opening a webview type window while developing extensions
Steps to Reproduce:
dragover
loss,and can't dropI use
tag 1.90.2
compile and run vscode-oss work .but use latest commitaea213b7fcc7de5c24ad797ac1af209b159d451f
doesn't work.The text was updated successfully, but these errors were encountered: