Microsoft/vscode

Drag&Drop within extension from one webview to the other not working with vscode > 1.90.0

Open

#256,444 建立於 2025年7月17日

在 GitHub 查看
 (6 留言) (4 反應) (1 負責人)TypeScript (10,221 fork)batch import
bughelp wantedwebview

倉庫指標

Star
 (74,848 star)
PR 合併指標
 (平均合併 11小時 43分鐘) (30 天內合併 1,000 個 PR)

描述

Problem: In my extenstion, when I drag an object from one webview (tree view in attached Sample project) and drop it into another webview, vscode security asks me to press shift before the drop. Since the source is not outside the project, I ask myself, if this is really a wished behavior by vscode. I would understand the logic when my drag area is an external file system, but here everthing happens within the same extension. The behavior makes my extension less usable. Is there some kind of fix planned? Or is this as known issue?
I have attached a Sample extension to illustrate the behavior.

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.102.0
  • OS Version: Windows 11

Steps to Reproduce:

  1. npm install
  2. npm run compile
  3. Press F5 to run extension
  4. In Extension press "Open Target Webview"
  5. From Explorer Select items form view "SECURITY DEMO ITEMS" and try to drop them in the drop area in the "Drop Target" view
  6. Message comes up to Hold Shift before dropping

Sample.zip

貢獻者指南