(items: TaskListRenderItem[])
| 1107 | } |
| 1108 | |
| 1109 | private syncGroupedDragMetadata(items: TaskListRenderItem[]): void { |
| 1110 | this.taskGroupKeys.clear(); |
| 1111 | const groupedPaths = new Map<string | null, string[]>(); |
| 1112 | for (const item of items) { |
| 1113 | if (item.type !== "task") continue; |
| 1114 | this.taskGroupKeys.set(item.task.path, item.groupKey); |
| 1115 | const paths = groupedPaths.get(item.groupKey) || []; |
| 1116 | paths.push(item.task.path); |
| 1117 | groupedPaths.set(item.groupKey, paths); |
| 1118 | } |
| 1119 | this.setSortScopePaths(groupedPaths); |
| 1120 | } |
| 1121 | |
| 1122 | private updateDropSlotPreview(slot: TaskListInsertionSlot): void { |
| 1123 | const { element, position } = slot; |
no test coverage detected