You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Shift+drag from the Explorer no longer delivers drag/drop events to a webview (regression) #339278
Does this issue occur when all extensions are disabled?: Yes
VS Code Version: 1.140.0 (stable), commit 07f806f, date 2026-09-30
OS Version: Windows 11 (VS Code UI) + Remote-WSL (Ubuntu 24.04) — reproduced in both a local and a WSL/Remote window
Steps to Reproduce:
Open any webview (built-in or from an extension). It reproduces with a plain extension webview; I used a third-party chat webview, but the drop handler is irrelevant to the repro because no drag event reaches the webview at all.
Observe that the webview receives no dragenter / dragover / drop events — nothing happens, no drop target is registered, no visual drop feedback
The same drag with no Shift also does not reach the webview (expected — it shows the editor drop overlay). The problem is specifically that holding Shift no longer re-enables the webview for an internal (Explorer) drag.
Expected Behavior
Holding Shift while dragging a file/folder from the Explorer over a webview should re-enable the webview (remove pointer-events: none) and deliver dragover/drop to the webview, exactly as documented for external OS file drags.
Actual Behavior
For an internal drag originating in the VS Code Explorer, the webview never gets re-enabled, so the webview's dragover/drop handlers never fire.
For comparison, in the same build:
Dragging a file from the Windows Explorer (OS) into the same webview works — dragover/drop fire as expected.
The internal Explorer drag does not work in either a sidebar webview (WebviewView) or an editor-tab webview (WebviewPanel).
Still reproducing on 1.142.0 (stable) — 2026-10-16.
VS Code 1.142.0, commit 6d62b1d5dace93a33b3a6d3eca1317bd5e15bcb1, x64
OS: Windows 11 (build 26200), local window (no remote)
Repro: open any extension webview that registers dragover/drop → in the Explorer select a file → drag it over the webview while holding Shift (the documented path from Drop files from Explorer to CustomEditor (webview) doesn't work #182449) → the webview receives nodragenter / dragover / drop. An instrumented handler logs nothing at all, and there is no drop feedback.
Impact: any chat/agent webview loses "drag a file in from the Explorer" completely. I hit it in two independent third-party chat webviews (one is a plain iframe host, so it is not about a particular drop handler).
Two questions that would help users following along:
Could someone link the canonical issue here? This report was closed as duplicate on 2026-10-05 without a pointer, so it is hard to track the fix from the outside.
Is the fix expected in 1.143 (Insiders) or later? A "fixed in " note would save everyone a bisect.
Workaround for anyone hitting this meanwhile: drag the file from the OS file manager instead of the VS Code Explorer — external drags still deliver events to the webview.
Activity
Joshuayang228 commentedon Oct 16, 2026
Still reproducing on 1.142.0 (stable) — 2026-10-16.
6d62b1d5dace93a33b3a6d3eca1317bd5e15bcb1, x64dragover/drop→ in the Explorer select a file → drag it over the webview while holding Shift (the documented path from Drop files from Explorer to CustomEditor (webview) doesn't work #182449) → the webview receives nodragenter/dragover/drop. An instrumented handler logs nothing at all, and there is no drop feedback.51917e86implemented.iframehost, so it is not about a particular drop handler).Two questions that would help users following along:
Workaround for anyone hitting this meanwhile: drag the file from the OS file manager instead of the VS Code Explorer — external drags still deliver events to the webview.