Skip to content

Commit 026968b

Browse files
committed
1 parent f5540cf commit 026968b

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ import { CodeCellViewModel } from 'vs/workbench/contrib/notebook/browser/viewMod
4848
import { MarkdownCellViewModel } from 'vs/workbench/contrib/notebook/browser/viewModel/markdownCellViewModel';
4949
import { CellViewModel } from 'vs/workbench/contrib/notebook/browser/viewModel/notebookViewModel';
5050
import { CellKind, NotebookCellRunState, NotebookCellMetadata } from 'vs/workbench/contrib/notebook/common/notebookCommon';
51-
import { containsDragType } from 'vs/workbench/browser/dnd';
5251
import { CellContextKeyManager } from 'vs/workbench/contrib/notebook/browser/view/renderers/cellContextKeys';
5352

5453
const $ = DOM.$;
@@ -463,8 +462,6 @@ interface CellDragEvent {
463462
}
464463

465464
export 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

Comments
 (0)