MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / markRemainingAsCancelled

Function markRemainingAsCancelled

src/stores/session.ts:338–345  ·  view source on GitHub ↗
(startIndex: number)

Source from the content-addressed store, hash-verified

336
337 // 辅助函数:标记剩余文件为已取消
338 const markRemainingAsCancelled = (startIndex: number) => {
339 for (let j = startIndex; j < batchFiles.value.length; j++) {
340 if (batchFiles.value[j].status === 'pending') {
341 batchFiles.value[j].status = 'cancelled'
342 cancelledCount++
343 }
344 }
345 }
346
347 // 串行导入每个文件
348 for (let i = 0; i < batchFiles.value.length; i++) {

Callers 1

importFilesFromPathsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected