Commit a4ba3b8
chore(vscode-extension): un-vendor affine-vscode adapter (Refs hyperpolymath/affinescript#104) (#66)
Replace the in-tree copy of `vscode-extension/src/affine-vscode-adapter.cjs`
(141-line copy of `packages/affine-vscode/mod.js` in hyperpolymath/affinescript)
with the published `@hyperpolymath/affine-vscode` npm package.
Concrete edits:
* package.json: add `@hyperpolymath/affine-vscode@^0.1.0` to `dependencies`;
drop `--vscode-extension-adapter=../src/affine-vscode-adapter.cjs` from
`compile` + `vscode:prepublish` scripts so the codegen default kicks in.
* src/affine-vscode-adapter.cjs: deleted (was a verbatim copy of the
upstream mod.js as of bindings PR #102).
* out/extension.cjs line 101 hand-edited: `require("../src/affine-vscode-adapter.cjs")`
→ `require("@hyperpolymath/affine-vscode")`. This matches what
`affinescript compile --vscode-extension` will regenerate on first
`npm run vscode:prepublish` after the package is on npm — the line is
auto-generated glue (see "Inserted by --vscode-extension" comment above
it), and the only difference is the bare specifier vs the relative path.
# DRAFT — gated on hyperpolymath/affinescript#104 (npm first publish)
Do NOT merge until `npm view @hyperpolymath/affine-vscode` resolves. Until then
`npm install` here will 404. The PR is staged so the diff is reviewable in
isolation from the publish step.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 6708936 commit a4ba3b8
3 files changed
Lines changed: 4 additions & 144 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
| 79 | + | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
This file was deleted.
0 commit comments