UNPKG

monaco-editor

Version:
25 lines (23 loc) 899 B
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ class TreeViewsDnDService { constructor() { this._dragOperations = new Map(); } removeDragOperationTransfer(uuid) { if ((uuid && this._dragOperations.has(uuid))) { const operation = this._dragOperations.get(uuid); this._dragOperations.delete(uuid); return operation; } return undefined; } } class DraggedTreeItemsIdentifier { constructor(identifier) { this.identifier = identifier; } } export { DraggedTreeItemsIdentifier, TreeViewsDnDService };