mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
parent
27a83dea30
commit
c4d4c382c2
|
@ -1543,6 +1543,7 @@ export class CustomTreeViewDragAndDrop implements ITreeDragAndDrop<ITreeItem> {
|
|||
this.dragCancellationToken = new CancellationTokenSource();
|
||||
this.treeViewsDragAndDropService.addDragOperationTransfer(uuid, this.handleDragAndLog(this.dndController, itemHandles, uuid, this.dragCancellationToken.token));
|
||||
this.treeItemsTransfer.setData([new DraggedTreeItemsIdentifier(uuid)], DraggedTreeItemsIdentifier.prototype);
|
||||
originalEvent.dataTransfer.clearData(Mimes.text);
|
||||
if (this.dndController.dragMimeTypes.find((element) => element === Mimes.uriList)) {
|
||||
// Add the type that the editor knows
|
||||
originalEvent.dataTransfer?.setData(DataTransfers.RESOURCES, '');
|
||||
|
|
Loading…
Reference in a new issue