@@ -34,7 +34,7 @@ import { fillResourceDataTransfers, CodeDataTransfers, extractResources, contain
3434import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation' ;
3535import { IDragAndDropData , DataTransfers } from 'vs/base/browser/dnd' ;
3636import { Schemas } from 'vs/base/common/network' ;
37- import { DesktopDragAndDropData , ExternalElementsDragAndDropData , ElementsDragAndDropData } from 'vs/base/browser/ui/list/listView' ;
37+ import { NativeDragAndDropData , ExternalElementsDragAndDropData , ElementsDragAndDropData } from 'vs/base/browser/ui/list/listView' ;
3838import { isMacintosh , isWeb } from 'vs/base/common/platform' ;
3939import { IDialogService , IConfirmation , getFileNamesMessage } from 'vs/platform/dialogs/common/dialogs' ;
4040import { IWorkingCopyFileService } from 'vs/workbench/services/workingCopy/common/workingCopyFileService' ;
@@ -839,11 +839,11 @@ export class FileDragAndDrop implements ITreeDragAndDrop<ExplorerItem> {
839839
840840 private handleDragOver ( data : IDragAndDropData , target : ExplorerItem | undefined , targetIndex : number | undefined , originalEvent : DragEvent ) : boolean | ITreeDragOverReaction {
841841 const isCopy = originalEvent && ( ( originalEvent . ctrlKey && ! isMacintosh ) || ( originalEvent . altKey && isMacintosh ) ) ;
842- const fromDesktop = data instanceof DesktopDragAndDropData ;
843- const effect = ( fromDesktop || isCopy ) ? ListDragOverEffect . Copy : ListDragOverEffect . Move ;
842+ const isNative = data instanceof NativeDragAndDropData ;
843+ const effect = ( isNative || isCopy ) ? ListDragOverEffect . Copy : ListDragOverEffect . Move ;
844844
845- // Desktop DND
846- if ( fromDesktop ) {
845+ // Native DND
846+ if ( isNative ) {
847847 if ( ! containsDragType ( originalEvent , DataTransfers . FILES , CodeDataTransfers . FILES ) ) {
848848 return false ;
849849 }
@@ -979,7 +979,7 @@ export class FileDragAndDrop implements ITreeDragAndDrop<ExplorerItem> {
979979 }
980980
981981 // Desktop DND (Import file)
982- if ( data instanceof DesktopDragAndDropData ) {
982+ if ( data instanceof NativeDragAndDropData ) {
983983 if ( isWeb ) {
984984 this . handleWebExternalDrop ( data , target , originalEvent ) . then ( undefined , e => this . notificationService . warn ( e ) ) ;
985985 } else {
@@ -992,7 +992,7 @@ export class FileDragAndDrop implements ITreeDragAndDrop<ExplorerItem> {
992992 }
993993 }
994994
995- private async handleWebExternalDrop ( data : DesktopDragAndDropData , target : ExplorerItem , originalEvent : DragEvent ) : Promise < void > {
995+ private async handleWebExternalDrop ( data : NativeDragAndDropData , target : ExplorerItem , originalEvent : DragEvent ) : Promise < void > {
996996 const items = ( originalEvent . dataTransfer as unknown as IWebkitDataTransfer ) . items ;
997997
998998 // Somehow the items thing is being modified at random, maybe as a security
@@ -1205,7 +1205,7 @@ export class FileDragAndDrop implements ITreeDragAndDrop<ExplorerItem> {
12051205 } ) ;
12061206 }
12071207
1208- private async handleExternalDrop ( data : DesktopDragAndDropData , target : ExplorerItem , originalEvent : DragEvent ) : Promise < void > {
1208+ private async handleExternalDrop ( data : NativeDragAndDropData , target : ExplorerItem , originalEvent : DragEvent ) : Promise < void > {
12091209
12101210 // Check for dropped external files to be folders
12111211 const droppedResources = extractResources ( originalEvent , true ) ;
0 commit comments