mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Reimplement drag and drop with the new interface (#21037)
* re enable drag and drop in book tree view
This commit is contained in:
@@ -311,14 +311,15 @@ export class ExtHostTreeView<T> extends Disposable {
|
||||
this.dataProvider = options.treeDataProvider;
|
||||
this.dndController = options.dragAndDropController;
|
||||
|
||||
// {{SQL CARBON MERGE TODO}}
|
||||
// {{SQL CARBON EDIT}}
|
||||
const dropMimeTypes = options.dragAndDropController?.dropMimeTypes ?? [];
|
||||
const dragMimeTypes = options.dragAndDropController?.dragMimeTypes ?? [];
|
||||
const hasHandleDrag = !!options.dragAndDropController?.handleDrag;
|
||||
const hasHandleDrop = !!options.dragAndDropController?.handleDrop;
|
||||
|
||||
if (this.proxy) {
|
||||
this.proxy.$registerTreeViewDataProvider(viewId, {
|
||||
showCollapseAll: !!options.showCollapseAll, canSelectMany: !!options.canSelectMany,
|
||||
dropMimeTypes: undefined, dragMimeTypes: undefined,
|
||||
hasHandleDrag: options.dragAndDropController !== undefined,
|
||||
hasHandleDrop: options.dragAndDropController !== undefined
|
||||
showCollapseAll: !!options.showCollapseAll, canSelectMany: !!options.canSelectMany, dropMimeTypes, dragMimeTypes, hasHandleDrag, hasHandleDrop
|
||||
});
|
||||
}
|
||||
this.dndController = options.dragAndDropController;
|
||||
|
||||
Reference in New Issue
Block a user