Development¶
The extension is TypeScript, bundled by bun; fits and optimizations run in a Python runner
(runner/, a uv project) that the extension starts and reads JSON lines from.
| Path | What |
|---|---|
src/extension.ts |
the sidebar, lenses, runs, results, tasks |
src/dataset.ts, src/csv.ts |
a dataset's logic and the CSV's profile, without VS Code |
src/assist.ts |
completion, hover, diagnostics and quick fixes for datasets |
src/datachecks.ts |
the data checks in the editor |
runner/runner.py |
the runner's commands: fit, optimize, check |
runner/fit.py, runner/optimize.py, runner/priors.py |
Meridian: fit, budget optimizer, priors |
runner/review.py |
Meridian's review of a fit: Problems, results, MLflow |
runner/checks.py |
the data checks |
runner/templates/ |
what New dataset, New model and New scenario write |
schemas/ |
the YAML's JSON schemas, for completion and errors |
docs/, mkdocs.yml |
this site |
Run and test¶
bun install, then F5 opensexamples/with the extension loaded.bun run test: type check, bundle, the tree's and the dataset helper's logic, then the runner (data checks, a tiny fit of the example and Meridian's review of it, an optimization, their MLflow runs; then the same against a localmlflow serverkeeping the files itself). A few minutes on CPU.bun run test:vscode: the extension in a real VS Code with the YAML extension (both downloaded into.vscode-test/the first time; on Linux without a display,xvfb-run -a bun run test:vscode). Its data checks part needsuv sync --project runner.bun run build && HOME=$(mktemp -d) PATH=/usr/bin:/bin $(which node) scripts/check-uv.jschecks the uv install (downloads uv).uv run --project runner scripts/gen_priors_schema.pyrewrites the priors part of the model schema from the installed Meridian, after an upgrade.bun run packagebuilds the.vsix;code --install-extension meridian-studio-*.vsixinstalls it.
CI (.github/workflows/test.yml) runs the tests on every push to a branch, and on a tag before its release.
Releases¶
A tag publishes the extension to the VS Code Marketplace and to Open VSX (Cursor, VSCodium…)
once the tests pass on it (.github/workflows/release.yml):
| Tag | Publishes |
|---|---|
v0.4.0 |
0.4.0, a release |
v0.3.0-rc.1 |
0.3.0, a pre-release |
The tag names the version in package.json; the workflow stops when they differ. The Marketplace takes
major.minor.patch only: the -rc.N suffix picks the channel, not the number, and a version published once, as a
release or a pre-release, cannot be published again. Each publication has its own number, then; VS Code's
convention is
odd minors for pre-releases (0.3.x), even ones for releases (0.4.x). The .vsix goes on the tag's GitHub release,
with the version's section of the changelog.
Or without git: Actions › release › Run workflow, on main, the tag in its field. The workflow tags the commit it
runs on, then publishes it in the same run. Left empty, the field makes a dry run.
Signing in to the Marketplace¶
No token: the workflow signs in to Microsoft Entra ID as a managed identity that trusts the repository's
marketplace environment, through GitHub's OIDC, and vsce publish --azure-credential publishes as that identity.
(The Marketplace's personal access tokens are global Azure DevOps tokens, which Microsoft retires on December 1,
2026.) Once:
-
A managed identity, user-assigned, in any Azure subscription: a free one does, the identity costs nothing and needs no role, and any region (some refuse new subscriptions:
RequestDisallowedByAzure; take another). -
Its federated credential, trusting this repository's
marketplaceenvironment. GitHub names a repository created since July 15, 2026 by its IDs as well as its name (owner@id/repo@id), hence the subject:az identity federated-credential create --resource-group meridian-studio \ --identity-name marketplace-publisher --name github-marketplace \ --issuer https://token.actions.githubusercontent.com --audiences api://AzureADTokenExchange \ --subject 'repo:lgrosjean@34337781/meridian-studio@1412399345:environment:marketplace' -
The
marketplaceenvironment in GitHub (Settings › Environments): deployments from the tagsv*and the branchmainonly (a required reviewer, optionally, then approves each publication), and two secrets,AZURE_CLIENT_IDandAZURE_TENANT_ID: -
A dry run: Actions › release › Run workflow, on
main, the tag left empty. It runs the tests and packages, prints the subject GitHub signs (step 2's), signs in, prints the identity's ID and checks its rights on the publisher, and publishes nothing. The first time, the check fails: add that ID to the publisher's members (marketplace.visualstudio.com/manage, Members), role Contributor, and run it again.
Signing in to Open VSX¶
ovsx publish exchanges the same OIDC token for a short-lived one when Open VSX trusts the workflow (trusted
publishing), or uses an access token in the OVSX_PAT secret when there is one. Only the namespace's owner can
register a trusted publisher, and publishing makes its GitHub account a contributor, not the owner; so the token
first. Once, all in the browser:
- An account: sign in to open-vsx.org with GitHub, create an Eclipse account with the same GitHub username, then in Settings › Profile, Log in with Eclipse and sign the Publisher Agreement.
- The namespace: Publish › Publish Extension, a
.vsixfrom a GitHub release. The upload creates the namespace named after the GitHub account,lgrosjean, thepublisherofpackage.json. - The token: Settings › Access Tokens › Generate New Token, as the secret
OVSX_PATof themarketplaceenvironment. The dry run checks it (ovsx verify-pat). - Then, without it: claim the namespace's ownership (an issue on
EclipseFdn/open-vsx.org, its namespace template; see
Managing Namespaces). Once owner, register
this repository's
release.yml, environmentmarketplace, as a trusted publisher, and deleteOVSX_PAT: the dry run then checks the exchange itself.
This site¶
Built by Zensical from docs/ and mkdocs.yml:
bun run docsserves it at http://localhost:8000, rebuilt as you edit;bun run docs:buildbuilds it intosite/, failing on a broken link, then checks that every YAML key of the schemas and every data check has its line in the reference.
.github/workflows/docs.yml builds it on every pull request, and publishes it to GitHub Pages from main.