mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
Use CancellationToken.None
instead of creating a new CTS (#153162)
This commit is contained in:
parent
6b4b361319
commit
6ee7176751
|
@ -1513,11 +1513,11 @@ export class CustomTreeViewDragAndDrop implements ITreeDragAndDrop<ITreeItem> {
|
|||
|
||||
const additionalDataTransfer = await this.treeViewsDragAndDropService.removeDragOperationTransfer(willDropUuid);
|
||||
if (additionalDataTransfer) {
|
||||
for (const item of additionalDataTransfer.entries()) {
|
||||
outDataTransfer.append(item[0], item[1]);
|
||||
for (const [type, item] of additionalDataTransfer.entries()) {
|
||||
outDataTransfer.append(type, item);
|
||||
}
|
||||
}
|
||||
return dndController.handleDrop(outDataTransfer, targetNode, new CancellationTokenSource().token, willDropUuid, treeSourceInfo?.id, treeSourceInfo?.itemHandles);
|
||||
return dndController.handleDrop(outDataTransfer, targetNode, CancellationToken.None, willDropUuid, treeSourceInfo?.id, treeSourceInfo?.itemHandles);
|
||||
}
|
||||
|
||||
onDragEnd(originalEvent: DragEvent): void {
|
||||
|
|
Loading…
Reference in a new issue