Pre-release versioning, SNAPSHOT language server builds, and CI-built VSIX packages
@raleigh-g-thompson is already working on this.
Since Mar 17, 2026.
- #149 by @raleigh-g-thompson — closed without merging
Assessment
This issue has not been assessed yet.
Description
Updated 2026-11-17. This replaces the original description. The odd/even minor versioning is kept, not
replaced, and the extension version is no longer derived by stripping-SNAPSHOT. The original bullets are
covered under items 1 and 2 below.
Summary
Make pre-releases and beta builds cheap and hard to get wrong:
- developers never hand-edit a pre-release patch number;
- the build can bundle a SNAPSHOT (or branch-built) language server;
- custom beta VSIX packages come from CI instead of local
package:localbuilds copied by hand.
Problem
- Publishing is manual. Every pre-release needs a hand-picked, never-reused version number and a remembered
--pre-releaseflag. vsce has nopackage.jsonfield for the channel. It's only the
vsce package/publish --pre-releaseoption. - The Marketplace rejects semver tags.
1.3.0-beta.1fails atvsce publish, so the Maven-SNAPSHOT
model can't be copied directly. - Beta builds are built by hand. Today they are made locally with
npm run package:local, with a SNAPSHOT
language server jar copied intodist/java-support/jars/by hand, then shared on a drive.
scripts/download-jar.jsonly fetches release jars fromrepo1.maven.org. - Merging is slow. PRs to
masterneed approval, so testable builds of unmerged work have no supported path.
Proposal
1. Versioning: odd/even minor plus a stamped pre-release patch
Keep the convention (the VS Code recommendation,
already enforced by the verify-changelog CI job):
| Channel | Committed package.json |
Published version | Who sets the patch |
|---|---|---|---|
| Release | 1.2.0, 1.2.1 |
Same | The developer, by standard semver (fixes → patch, features → next even minor) |
| Pre-release | 1.3.0 (odd minor, patch 0) |
1.3.<YYDDDHHMM>, e.g. 1.3.263211530 for 2026-11-17 15:30 UTC |
The packaging script, never committed |
- Patch format
YYDDDHHMM: two-digit year, day of year, hour and minute, in UTC.- It always increases and needs no stored counter.
- It stays under 2³¹ (the largest value is 993662359).
- Microsoft's ms-python.python builds the patch the same way (day of year plus time). ms-vscode.remote-server and
others also put timestamps in the patch.
- Stamping: use
vsce package <version> --no-update-package-json --pre-release. vsce writes the version into
the VSIX only, so the repo'spackage.jsonand history are untouched. - New script
scripts/vsce.js:- takes the channel from the minor's parity;
- adds
--pre-releaseand the stamp for odd minors; - rejects
--pre-releaseon an even minor; - shares the parity rule with
verify-changelog, so the two can't drift.
- npm scripts:
package,package:localand a newpublish:marketplacego throughscripts/vsce.js. - Traceability: the git SHA (and CI run number, when built in CI) go in the VSIX file name and metadata, not
in the version.
2. SNAPSHOT language server resolution (original #148 scope)
SNAPSHOTs are deployed to https://central.sonatype.com/repository/maven-snapshots/. Their maven-metadata.xml
gives the timestamped jar, for example 5.1.0-20261105.155158-1.
scripts/download-jar.js: for a-SNAPSHOTversion, readmaven-metadata.xmland download the timestamped
jar. Save it ascql-ls-server-<version>.jar, the name the extension loads.javaServiceInstaller.ts: resolve SNAPSHOT jars at runtime the same way. Re-download when the metadata
timestamp changes, instead of caching forever.- Tests: release and SNAPSHOT coordinates, a missing SNAPSHOT, and path handling on macOS/Linux,
C:\…and
C:/….
3. Beta VSIX workflow (no Marketplace, any branch)
A workflow_dispatch workflow (.github/workflows/beta-vsix.yml) that can run on any branch, including unmerged
feature branches. Inputs:
ls: which language server to bundle:pinned, thejavaDependenciesversion;snapshot, the latest SNAPSHOT;ref:<branch>, cql-language-server built from source at that branch.
Steps:
- Run the CI tests.
- Set
javaDependenciesin the CI checkout only, never committed, and place the jar. - Package with
.vscodeignore.localand the stamped version.
File name: cql-<version>-<branch>-<sha7>-ls-<lsVersion>.vsix.
Delivery, starting simple:
- Workflow artifact: no setup, kept up to 90 days.
- Optional, later: a GitHub pre-release on a fork, or an upload to a shared drive. A drive upload needs a
service-account secret, which belongs in a fork the owning team controls, not in the public cqframework repo.
Optionally, run the same job on pull_request and attach the VSIX, so reviewers can install a PR without building
it.
4. Marketplace pre-release pipeline (later)
- From
master, with trunk-based development: a workflow packages throughscripts/vsce.jsand publishes with
vsce publish --packagePath … --pre-release. - A GitHub environment with a required reviewer keeps a manual approval before anything is published.
- Credential: a Marketplace PAT secret, or workload identity (
vsce publish --azure-credential) to avoid expiring
tokens. - Releases stay manual, per the Release Guide.
5. Documentation
- Update the wiki Release Guide:
- pre-releases no longer need a patch-bump branch;
- packaging goes through
npm run packageornpm run publish:marketplacerather than barevsce; - beta builds come from the workflow.
- Update the Developer Guide's SNAPSHOT jar instructions.
Non-goals
- Changing the odd/even convention, or the release-version rules (developers still set release versions by semver).
- Automating releases. They stay manual.
- Marketplace changes for cql-language-server or cql-mcp.
Acceptance criteria
-
npm run packageon an odd minor produces a pre-release VSIX versionedX.ODD.<YYDDDHHMM>, with
package.jsonunchanged in git. -
npm run packageon an even minor produces a release VSIX with the committed version, and rejects
--pre-release. -
download-jar.jsandjavaServiceInstaller.tsresolve-SNAPSHOTversions from Central snapshots. -
beta-vsix.ymlbuilds an installable VSIX from any branch with eachlsoption. - Unit tests cover the stamp format (year and day rollover, under 2³¹), the parity rules, SNAPSHOT resolution
and cross-platform paths. - The Release Guide and Developer Guide are updated.
Suggested order
Items 1 and 2 are independent and small. Item 3 depends on both. Item 4 depends on 1 and needs maintainer sign-off
and a Marketplace credential.
References
- VS Code, Publishing Extensions: pre-release extensions
@vscode/vsce4.1.1:--no-update-package-json(out/package.js);- semver tags rejected at publish (
out/publish.js); --pre-releaserequiresengines.vscode>= 1.63.
- Timestamped pre-release patches on the Marketplace:
ms-python.python(2026.11.2026110601),
ms-vscode.remote-server(1.6.2026092109),stateful.marquee(3.3.1682654242). - microsoft/vscode-python
build/update_ext_version.py:
parity checks and the day-of-year patch. - Related: #151 (pre-release support, closed).
- Dominant language
- TypeScript
- Stars
- 14
- Forks
- 8
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 1
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cqframework/vscode-cql
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
cqframework/vscode-cql#201 ·
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
cqframework/vscode-cql#199 ·
-
bug documentation
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
cqframework/vscode-cql#198 ·
-
Move the unit-test fixture to test-workspace and add cql-test-content as a submodulePossibly taken @raleigh-g-thompson claimed this today. Opencode cleanup
Difficulty 3/5 1-2 days Newbie friendliness 70/100
cqframework/vscode-cql#203 ·
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 45/100
cqframework/vscode-cql#202 ·
All issues in cqframework/vscode-cql
Similar issues
-
bug engine
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
frostney/GocciaScript#2539 ·
Maintainers usually reply within 1 day
-
Fish Audio Live calls fail to start: `Unknown callback "onNotice"` from @fishaudio/agent-clientPossibly taken @NEAL3K claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
milind-soni/OpenMausBot#8345 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
ardia-browser/ardia#6142 ·
Maintainers usually reply within 1 day
-
feature
Difficulty 1/5 Under an hour Newbie friendliness 78/100
ChromeDevTools/chrome-devtools-mcp#3689 ·
Maintainers usually reply within 1 day
-
bug from-app needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
nightly-labs/openbot#21303 ·
Maintainers usually reply within 1 day