@@ -48,7 +48,6 @@ import { CodeCellViewModel } from 'vs/workbench/contrib/notebook/browser/viewMod
4848import { MarkdownCellViewModel } from 'vs/workbench/contrib/notebook/browser/viewModel/markdownCellViewModel' ;
4949import { CellViewModel } from 'vs/workbench/contrib/notebook/browser/viewModel/notebookViewModel' ;
5050import { CellKind , NotebookCellRunState , NotebookCellMetadata } from 'vs/workbench/contrib/notebook/common/notebookCommon' ;
51- import { containsDragType } from 'vs/workbench/browser/dnd' ;
5251import { CellContextKeyManager } from 'vs/workbench/contrib/notebook/browser/view/renderers/cellContextKeys' ;
5352
5453const $ = DOM . $ ;
@@ -463,8 +462,6 @@ interface CellDragEvent {
463462}
464463
465464export class CellDragAndDropController extends Disposable {
466- private static DATA_TYPE = 'vscode_notebook_cell' ;
467-
468465 // TODO@roblourens - should probably use dataTransfer here, but any dataTransfer set makes the editor think I am dropping a file, need
469466 // to figure out how to prevent that
470467 private currentDraggedCell : ICellViewModel | undefined ;
@@ -575,7 +572,7 @@ export class CellDragAndDropController extends Disposable {
575572 return ;
576573 }
577574
578- if ( ! this . currentDraggedCell || ! containsDragType ( event . browserEvent , CellDragAndDropController . DATA_TYPE ) ) {
575+ if ( ! this . currentDraggedCell ) {
579576 event . browserEvent . dataTransfer . dropEffect = 'none' ;
580577 return ;
581578 }
@@ -652,8 +649,6 @@ export class CellDragAndDropController extends Disposable {
652649 return ;
653650 }
654651
655- event . dataTransfer . setData ( CellDragAndDropController . DATA_TYPE , 'true' ) ;
656-
657652 this . currentDraggedCell = templateData . currentRenderedCell ! ;
658653 this . currentDraggedCell . dragging = true ;
659654
0 commit comments