mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
parent
340338b3b3
commit
7131e48daf
|
@ -139,12 +139,11 @@ export class ExtHostTreeViews implements ExtHostTreeViewsShape {
|
|||
if ((sourceViewId === destinationViewId) && sourceTreeItemHandles) {
|
||||
const additionalTransferItems = await treeView.onWillDrop(sourceTreeItemHandles);
|
||||
if (additionalTransferItems) {
|
||||
for (const key of additionalTransferItems.items.keys()) {
|
||||
const item = additionalTransferItems.items.get(key);
|
||||
if (item) {
|
||||
treeDataTransfer.items.set(key, item);
|
||||
additionalTransferItems.items.forEach((value, key) => {
|
||||
if (value) {
|
||||
treeDataTransfer.items.set(key, value);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
return treeView.onDrop(treeDataTransfer, newParentItemHandle);
|
||||
|
|
|
@ -38,7 +38,7 @@ declare module 'vscode' {
|
|||
*/
|
||||
items: {
|
||||
get: (mimeType: string) => TreeDataTransferItem | undefined
|
||||
keys: () => IterableIterator<string>;
|
||||
forEach: (callbackfn: (value: TreeDataTransferItem, key: string) => void) => void;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue