Skip to content

Shift+drag from the Explorer no longer delivers drag/drop events to a webview (regression) #339278

Closed as duplicate

Description

@JackOneil

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:

  1. 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.
  2. Open the Explorer.
  3. Select a file or folder.
  4. Drag it over the webview while holding Shift (the documented way to drop into a webview: Drop files from Explorer to CustomEditor (webview) doesn't work #182449).
  5. 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).

Activity

  1. Joshuayang228 commented on Oct 16, 2026

    @Joshuayang228

    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 no dragenter / dragover / drop. An instrumented handler logs nothing at all, and there is no drop feedback.
    • Without Shift the behaviour is as expected (editor drop overlay), so it is specifically the "Shift re-enables the webview for internal (Explorer) drags" path that is gone — the one Fixes #182449 : Pressing Shift re-enables webview during Drag and Drop Events #209211 / commit 51917e86 implemented.
    • 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:

    1. 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.
    2. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions