{"draft":null,"from":237,"to":238,"files":[{"path":"worker/project/collisions.ts","added":9,"removed":2,"diff":"--- a/worker/project/collisions.ts\n+++ b/worker/project/collisions.ts\n@@ -282,13 +282,20 @@\n \t\tfor (const file of g.filesOf(id)) out.add(file);\n \t\tif (moved.length === 0) continue;\n \t\tconst atom = g.atom(id);\n-\t\tconst lines: string[] = [...g.deletedLines(id)];\n+\t\tconst lines: string[] = [];\n \t\tfor (const run of atom.inserts) if (!run.parent.startsWith(\"^\")) lines.push(run.parent);\n \t\tfor (const m of atom.moves ?? []) {\n \t\t\tlines.push(m.line);\n \t\t\tif (!m.parent.startsWith(\"^\")) lines.push(m.parent);\n \t\t}\n-\t\tfor (const v of moved) for (const line of lines) out.add(v.fileOf(line));\n+\t\tfor (const v of moved) {\n+\t\t\tfor (const line of lines) out.add(v.fileOf(line));\n+\t\t\t// Deleted lines by number where the view can (abso Capacity): a draft deleting a big file has thousands, and\n+\t\t\t// making each one's id only to look its number up again was most of collisions on website.\n+\t\t\tconst byNumber = (v as { fileOfNumber?: (n: number) => string }).fileOfNumber;\n+\t\t\tif (byNumber) for (const n of g.deletedNumbers(id)) out.add(byNumber.call(v, n));\n+\t\t\telse for (const line of g.deletedLines(id)) out.add(v.fileOf(line));\n+\t\t}\n \t}\n \treturn out;\n }"}],"unmatched":[]}