{"draft":null,"from":236,"to":237,"files":[{"path":"worker/project/project.ts","added":2,"removed":14,"diff":"--- a/worker/project/project.ts\n+++ b/worker/project/project.ts\n@@ -58,6 +58,7 @@\n \ttype Pair,\n \tpairsIn,\n \tstrandedFiles,\n+\ttouchedBeyond,\n \ttouchedFiles,\n } from \"./collisions.ts\";\n import { type DefinitionCollision, DefinitionRule } from \"./definition-rule.ts\";\n@@ -2748,20 +2749,7 @@\n \t\t\t\t// view holds beyond its base is the draft and whatever the draft depends on that the base lacks (the view's\n \t\t\t\t// set is closed): each of those can change a file, so all of them count.\n \t\t\t\tconst mine = agent.mine;\n-\t\t\t\tview.shareFiles(base, () => {\n-\t\t\t\t\tconst graph = this.#graph;\n-\t\t\t\t\tconst below = base.set;\n-\t\t\t\t\tconst beyond = new Set<AtomId>();\n-\t\t\t\t\tconst stack = [...mine];\n-\t\t\t\t\twhile (stack.length) {\n-\t\t\t\t\t\tconst id = stack.pop()!;\n-\t\t\t\t\t\tif (beyond.has(id) || below.has(id)) continue;\n-\t\t\t\t\t\tbeyond.add(id);\n-\t\t\t\t\t\tfor (const dep of graph.atom(id).deps) if (!beyond.has(dep) && !below.has(dep)) stack.push(dep);\n-\t\t\t\t\t}\n-\t\t\t\t\tfor (const id of beyond) if ((graph.atom(id).moves?.length ?? 0) > 0) return undefined;\n-\t\t\t\t\treturn this.#touchedFiles(beyond, [base, view]);\n-\t\t\t\t});\n+\t\t\t\tview.shareFiles(base, () => touchedBeyond(this.#graph, base.set, mine, [base, view]));\n \t\t\t}\n \t\t}\n \t\treturn view;"}],"unmatched":[]}