Problem
editors/vscode/src/extension.ts is the only TypeScript file under editors/. It exists because AffineScript currently has no Node-target backend, and VS Code extensions have to ship a Node-callable entry point pinned by package.json's main field.
It's documented as an approved exemption in .claude/CLAUDE.md (see TypeScript Exemptions table). The unblock condition is #35.
Acceptance criteria
Origin
TS-elimination audit, 2026-05-02 (recommendation #7). Local audit at ~/dev/affinescript/.claude/CLAUDE.md notes the exemption.
Dependencies
Problem
editors/vscode/src/extension.tsis the only TypeScript file undereditors/. It exists because AffineScript currently has no Node-target backend, and VS Code extensions have to ship a Node-callable entry point pinned bypackage.json'smainfield.It's documented as an approved exemption in
.claude/CLAUDE.md(see TypeScript Exemptions table). The unblock condition is #35.Acceptance criteria
editors/vscode/src/extension.affine.editors/vscode/package.jsonmainto point at the AffineScript-compiled artefact.editors/vscode/src/extension.tsrow from the TypeScript Exemptions table in.claude/CLAUDE.md.Origin
TS-elimination audit, 2026-05-02 (recommendation #7). Local audit at
~/dev/affinescript/.claude/CLAUDE.mdnotes the exemption.Dependencies