Skip to content

Commit 4b0c17e

Browse files
committed
1 parent 93e61e2 commit 4b0c17e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/vs/workbench/contrib/files/browser/views/explorerViewer.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,10 @@ export class FileDragAndDrop implements ITreeDragAndDrop<ExplorerItem> {
831831
if (!containsDragType(originalEvent, DataTransfers.FILES, CodeDataTransfers.FILES, DataTransfers.RESOURCES)) {
832832
return false;
833833
}
834+
if (isWeb && originalEvent.dataTransfer?.types.indexOf('Files') === -1) {
835+
// DnD from vscode to web is not supported #115535. Only if we are dragging from native finder / explorer then the "Files" data transfer will be set
836+
return false;
837+
}
834838
}
835839

836840
// Other-Tree DND

0 commit comments

Comments
 (0)