mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Merge from vscode 79a1f5a5ca0c6c53db617aa1fa5a2396d2caebe2
This commit is contained in:
@@ -47,11 +47,7 @@ export class DraggedEditorIdentifier {
|
||||
|
||||
export class DraggedEditorGroupIdentifier {
|
||||
|
||||
constructor(private _identifier: GroupIdentifier) { }
|
||||
|
||||
get identifier(): GroupIdentifier {
|
||||
return this._identifier;
|
||||
}
|
||||
constructor(public readonly identifier: GroupIdentifier) { }
|
||||
}
|
||||
|
||||
export interface IDraggedEditor extends IDraggedResource {
|
||||
@@ -675,6 +671,11 @@ export class CompositeDragAndDropObserver extends Disposable {
|
||||
disposableStore.add(addDisposableListener(element, EventType.DRAG_START, e => {
|
||||
const { id, type } = draggedItemProvider();
|
||||
this.writeDragData(id, type);
|
||||
|
||||
if (e.dataTransfer) {
|
||||
e.dataTransfer.setDragImage(element, 0, 0);
|
||||
}
|
||||
|
||||
this._onDragStart.fire({ eventData: e, dragAndDropData: this.readDragData(type)! });
|
||||
}));
|
||||
disposableStore.add(new DragAndDropObserver(element, {
|
||||
|
||||
Reference in New Issue
Block a user