You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/content/docs/en/advanced-guide/advanced-installation.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -119,16 +119,17 @@ npm run package:vsix -- --target linux-x64
119
119
npm run package:vsix -- --target linux-arm64
120
120
npm run package:vsix -- --target win32-x64
121
121
npm run package:vsix -- --target darwin-arm64
122
-
npm run package:vsix -- --target alpine-x64
122
+
npm run package:vsix -- --target alpine-x64 --server=prebuilt
123
+
npm run package:vsix -- --target alpine-arm64 --server=prebuilt
123
124
```
124
125
125
-
These scripts compile the extension, prepare a release server binary for the target platform, and generate `vide-vscode-<target>.vsix`. Release packages do not enable profile trace, and they do not include Speedscope static assets or the profiling command by default. The current release workflow only covers those targets: glibc Linux, Windows x64, macOS arm64, and Alpine/musl x64.
126
+
These scripts compile the extension, prepare a release server binary for the target platform, and generate `vide-vscode-<target>.vsix`. Release packages do not enable profile trace, and they do not include Speedscope static assets or the profiling command by default. The current release workflow only covers those targets: glibc Linux, Windows x64, macOS arm64, and Alpine/musl x64/arm64.
126
127
Those are also the VSIX targets currently built by CI. Other platforms are not current packaging targets.
127
128
128
129
All packaging commands above need to prepare the language server binary for the target platform first. `editors/vscode/scripts/package.ts` calls `cargo xtask vscode prepare-server`, and the reusable server build rules live under `cargo xtask server build`:
129
130
130
131
- When the target matches the current host platform, xtask runs `cargo build` for the selected profile and copies the result.
131
-
- Alpine targets are built in musl containers in CI. The local script adds the matching Rust musl target, but still needs a working musl cross-compilation environment.
132
+
- Alpine targets are built by the release artifact workflow as prebuilt musl language servers. To package an Alpine VSIX locally, first place the matching `vide` binary under `editors/vscode/server/<target>/`, then pass `--server=prebuilt`.
132
133
- Other non-host targets are not automatically cross-compiled; the matching `vide` or `vide.exe` must already exist under `editors/vscode/server/<target>/`, or you should package on a matching native runner.
133
134
134
135
### Install the VS Code Extension
@@ -172,6 +173,7 @@ You can download a `.vsix` file and install it manually. Choose the source based
172
173
VSIX packages are platform-specific. Current release and CI artifacts cover these targets:
0 commit comments