diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 8435edf..0000000 Binary files a/.DS_Store and /dev/null differ diff --git a/.gitignore b/.gitignore index d87ba8a..5c3b761 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /dist /.lucisv_cache /.score-results.tsv +.DS_Store diff --git a/README.md b/README.md index 932bf46..4a74495 100644 --- a/README.md +++ b/README.md @@ -610,8 +610,9 @@ go-to-definition, references and document/workspace symbols — the full list, and what is deliberately *not* advertised yet, is in `docs/features/lucisv-server/README.md`. -**The binary comes from the same build as the CLI**, and nothing downloads it -for you: +**The binary comes from the same build as the CLI.** Download it from the +[releases page](https://git.luci.ooo/lucio/lucisv/releases) for your +platform, or build it yourself: ```bash cargo build --release # target/release/lucisv-server (and target/release/lucisv) @@ -626,11 +627,12 @@ registering the file types and starting the server: ```bash tools/release.sh # builds dist/lucisv-.vsix -code --install-extension dist/lucisv-0.5.0.vsix +code --install-extension dist/lucisv-.vsix ``` -Sideloading that `.vsix` is the supported install; the extension is not on any -marketplace. To package it by hand instead: `cd editors/vscode && npm ci && +The `.vsix` is also attached to every release on the +[releases page](https://git.luci.ooo/lucio/lucisv/releases). Sideloading it +is the supported install; the extension is not on any marketplace. To package it by hand instead: `cd editors/vscode && npm ci && npx @vscode/vsce package`. Settings are listed in `editors/vscode/README.md`, along with the full steps, @@ -665,10 +667,13 @@ to the folder walk, so the index is never silently empty. the handshake and the advertised capabilities are intact — which tells you whether a failure is the server or your editor config. -One caveat, stated up front: the server does **not** read `lucisv.toml` yet, so -formatting through an editor uses the defaults (100 columns, 2-space indent) -with the editor's tab size overriding the indent. `lucisv` on the command line -does read it. +**Formatting through an editor reads `lucisv.toml` too**, discovered from the +buffer's own path by the CLI's rule, so format-on-save agrees with what +`lucisv --check` does in CI. Precedence, highest first: `lucisv.toml`, then +the editor's `lucisv.lineLength`/`lucisv.indent` settings, then the editor's +tab size (indent only — the protocol carries no line-length), then the +defaults. A broken config never blocks formatting: the buffer is formatted +with the next rung down and the error is surfaced in the editor. ## Contributing / workflow @@ -687,18 +692,27 @@ expected outputs with `UPDATE_SNAPSHOTS=1 cargo test -p vlog_formatter`. ## Install and releases -There are no prebuilt downloads: you build the artifacts, or someone builds -them for your platform and hands you the files. +Prebuilt downloads live on the +[releases page](https://git.luci.ooo/lucio/lucisv/releases): every tagged +version carries `lucisv` and `lucisv-server` for Apple Silicon and Intel +macOS, static-musl and RHEL 8-compatible glibc Linux, and Windows, plus the +`.vsix` and a `SHA256SUMS` to verify them with +(`shasum -a 256 -c SHA256SUMS`). Copy the two binaries onto your `PATH` and +sideload the extension with `code --install-extension`. The macOS binaries +are smoke-tested on the build machine; the Linux and Windows ones are +cross-built and audited (file type, dynamic-linkage, glibc-version ceiling), +not executed — there is no Linux or Windows machine in the loop. + +To build the same artifact set yourself: ```bash -tools/release.sh # release binaries + the .vsix + SHA256SUMS, into dist/ +tools/release.sh # host binaries + the .vsix + SHA256SUMS, into dist/ +tools/release.sh --cross # ...plus the four cross-built platforms ``` -`dist/` then holds `lucisv--`, -`lucisv-server--`, `lucisv-.vsix` and `SHA256SUMS` -(verify with `cd dist && shasum -a 256 -c SHA256SUMS`). Copy the two binaries -onto your `PATH` and sideload the extension with `code --install-extension`. -The script builds for the host triple only and publishes nothing anywhere. +The script itself publishes nothing anywhere; publishing is CI's job — +pushing a `vX.Y.Z` tag builds all of the above on Gitea Actions and attaches +it to a release, with that version's `CHANGELOG.md` section as the notes. Release notes are in [`CHANGELOG.md`](CHANGELOG.md); the full checklist — where the version number lives, how the `.vsix` is packaged, and what