Skip to content

Consolidate product version onto Cargo.toml and stage the VSIX during packaging #670

Description

@logbie

Deferred slice of the approved repository hygiene design (Engineering/designs/2026-07-28-repository-hygiene-design.md §"Single sources of truth" and §"Packaging"). The hygiene migration declared these as transitional [[generated]] exceptions in .repo-hygiene.toml, with the checker's version-drift rule keeping every mirror in agreement until this lands.

Remaining work (R3 under testing.md — needs Windows packaging evidence):

  • Runtime version via env!("CARGO_PKG_VERSION"); retire the hand-maintained src/version.rs constant.
  • Retire .build_meta.json; nightly.yml/ci.yml/versioning.yml read the version from Cargo.toml instead of src/version.rs/.build_meta.json.
  • Retire root wix.toml after characterization tests prove the effective cargo-wix inputs; move still-required settings into Cargo.toml metadata or wix/main.wxs, preserving UpgradeCode and component identities.
  • Generate the VSIX during packaging, stage it at target/package/windows/vscode-wfl.vsix, update scripts/install_vscode_extension.ps1 and WiX consumers atomically, then delete the tracked vscode-extension/vscode-wfl-0.1.0.vsix and drop its exceptions from .repo-hygiene.toml.
  • Verify MSI ProductVersion, release filenames, the WFL CLI, and the embedded VSIX all carry the canonical version; record the independently versioned bundled wfl-lsp and prove the extension's compatibility range accepts it.

Evidence per testing.md §15: clean install, optional-extension install, upgrade, uninstall, PATH/config behavior, and artifact-version checks on Windows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions