src/vs/workbench/api/common/extHostTypeConverters.ts/toDataTransferDTO
	export async function toDataTransferDTO(value: vscode.DataTransfer | VSDataTransfer): Promise<extHostProtocol.DataTransferDTO> {
		const newDTO: extHostProtocol.DataTransferDTO = { items: [] };

		const promises: Promise<any>[] = [];
		value.forEach((value, key) => {
			promises.push((async () => {
				const stringValue = await value.asString();
				const fileValue = value.asFile();
				newDTO.items.push([key, {
					asString: stringValue,
					fileData: fileValue ? { name: fileValue.name, uri: fileValue.uri } : undefined,
				}]);
			})());
		});

		await Promise.all(promises);

		return newDTO;
	}