Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions vscode-extension/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,25 @@ committed last-good build. Recompiling from the AffineScript source requires:

```bash
cd vscode-extension
npm install
npm install # needs a reachable npm registry (NOT WSL here)
export AFFINESCRIPT_STDLIB=/path/to/affinescript/stdlib
npm run compile # affinescript compile --vscode-extension …
npm run package # vsce package -> my-lang-<version>.vsix (no PAT)
npm run package # @vscode/vsce package -> my-lang-<version>.vsix
code --install-extension my-lang-0.3.0.vsix
```

> **Status:** the `src/extension.affine` → `out/extension.cjs` recompile is
> gated on upstream **affinescript#35 Phase 2** (vscode-API stdlib bindings;
> `stdlib/Vscode.affine` does not yet type-check). Until that lands, the
> committed `out/extension.cjs` + `src/index.cjs` are the working artifacts;
> `vsce package` produces an installable `.vsix` from them and needs **no**
> Azure Marketplace PAT (only `vsce publish` does).
> **Status:** `src/extension.affine` **compiles** (`affinescript compile
> --vscode-extension`) and the upstream `stdlib/Vscode.affine` /
> `VscodeLanguageClient.affine` bindings type-check on affinescript `main`
> (#35 Phase 2 effectively complete). `src/index.cjs` (the `main`) +
> `out/extension.cjs` are the runtime artifacts.
>
> **Packaging** needs `@vscode/vsce` (the old deprecated `vsce` 2.x cannot
> handle a `.cjs` entrypoint — it looks for `index.cjs.js`) **and** a
> registry-reachable environment for `npm install` (the WSL dev box's npm
> registry is unreachable, so package/publish must run elsewhere — CI or a
> non-WSL host). `vsce package` → `.vsix` needs **no** Azure Marketplace
> PAT; only `vsce publish` (Marketplace upload) does.

## License

Expand Down
2 changes: 1 addition & 1 deletion vscode-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"package": "vsce package"
},
"devDependencies": {
"vsce": "^2.15.0"
"@vscode/vsce": "^3.2.0"
},
"dependencies": {
"vscode-languageclient": "^9.0.1"
Expand Down
Loading