Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"fallout.globaltool": {
"version": "10.4.0",
"version": "10.5.0",
"commands": [
"fallout"
]
Expand Down
5 changes: 3 additions & 2 deletions .fallout/build.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
"Verbose",
"Normal",
"Minimal",
"Quiet"
"Quiet",
"Information"
]
},
"FalloutBuild": {
Expand All @@ -57,7 +58,7 @@
},
"NoLogo": {
"type": "boolean",
"description": "Disables displaying the NUKE logo"
"description": "Disables displaying the Fallout logo"
},
"Partition": {
"type": "string",
Expand Down
6 changes: 3 additions & 3 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ The repo holds three things, and they are easy to confuse:

**This repo is dogfooding.** The extension's own build/publish pipeline is a Fallout build, and the toolchain it drives is a Fallout *plugin* rather than anything baked into the framework — Fallout as a general orchestrator, not just a .NET build tool. `Fallout.Vsce` is deliberately **not** in the framework repo: it's the pilot for [ADR-0001](https://github.com/Fallout-build/Fallout/blob/main/docs/adr/0001-cd-primitives-attributes-vs-tasks.md)'s "provider integrations ship as plugins" shape, and it proved out using only public primitives — no escape hatch into framework internals.

**Versioning.** The extension's `major.minor` track the Fallout release line it targets (`10.4.x` against Fallout 10.4); the patch is a git height and moves independently. [Nerdbank.GitVersioning](https://github.com/dotnet/Nerdbank.GitVersioning) computes it from `version.json`, same as the framework. See [docs/releasing.md](docs/releasing.md#versioning).
**Versioning.** The extension's `major.minor` track the Fallout release line it targets (`10.5.x` against Fallout 10.5); the patch is a git height and moves independently. [Nerdbank.GitVersioning](https://github.com/dotnet/Nerdbank.GitVersioning) computes it from `version.json`, same as the framework. See [docs/releasing.md](docs/releasing.md#versioning).

**Branching: GitFlow** — `develop` is the trunk and default branch, `main` is production. This differs from the framework repo, which has no `develop` and uses permanent `release/YYYY` production lines. See [docs/branching-and-release.md](docs/branching-and-release.md).

## Stack

- **Extension:** TypeScript 5.9 → `tsc` → `out/`. `strict: true`, CommonJS, ES2022. VS Code engine `^1.85.0`. One runtime dependency: `mermaid`.
- **Build:** .NET SDK pinned in `global.json` (`10.0.100`, `rollForward: latestMinor`); Fallout 10.4.0 as the `fallout.globaltool` (`.config/dotnet-tools.json`) and the `Fallout.Common` package reference.
- **Build:** .NET SDK pinned in `global.json` (`10.0.100`, `rollForward: latestMinor`); Fallout 10.5.0 as the `fallout.globaltool` (`.config/dotnet-tools.json`) and the `Fallout.Common` package reference.
- `nuget.config` clears sources and pins nuget.org only, so a machine-level feed can't shadow the pinned Fallout packages.
- **There is no test suite** — no test runner, no `npm test`, no `.vscode-test` harness. Verification is `tsc` plus running the extension (F5) or sideloading the packed `.vsix`. Don't invent a test command; if you add a framework, that's a deliberate decision to raise.

Expand Down Expand Up @@ -55,7 +55,7 @@ Compilation is delegated to the project's own npm scripts rather than reimplemen

1. **`.github/workflows/build.yml` is generated — never hand-edit it.** It comes from the `[GitHubActions]` attribute in [`build/Build.CI.GitHubActions.cs`](build/Build.CI.GitHubActions.cs); edit the attribute and run `./build.sh` to regenerate. The file carries an `<auto-generated>` header saying so. `publish.yml` and `nightly.yml` are hand-written on purpose ([docs/ci.md](docs/ci.md#publishyml)).
2. **`build.yml` and `build-skip.yml` must stay exact complements.** `build.yml` excludes `**/*.md`; `build-skip.yml` fires on exactly that path set, does nothing, and reports success under the same **job** name `ubuntu-latest` — which *is* the required status-check context. A gap between the two path sets leaves a PR blocked forever on a check that never arrives. This is why the exclude is one flat pattern with no negations or carve-outs. Keep the job name, path sets, and branch lists in lockstep across both files.
3. **`version.json` and the pinned `Fallout.Common` move together.** `Build.AssertFrameworkLineMatches` fails the build if the declared line (`10.4`) drifts from the referenced framework version in `build/_build.csproj` *and* `plugins/Fallout.Vsce/Fallout.Vsce.csproj`. Bumping one and forgetting the other would ship a version that lies about what it targets. Never lower `versionHeightOffset` — it keeps marketplace versions monotonic across `version.json` changes.
3. **`version.json` and the pinned `Fallout.Common` move together.** `Build.AssertFrameworkLineMatches` fails the build if the declared line (`10.5`) drifts from the referenced framework version in `build/_build.csproj` *and* `plugins/Fallout.Vsce/Fallout.Vsce.csproj`. Bumping one and forgetting the other would ship a version that lies about what it targets. Never lower `versionHeightOffset` — it keeps marketplace versions monotonic across `version.json` changes.
4. **Marketplace versions are three integers, no prerelease.** `vsce` rejects `10.4.30-rc.1` outright ("The VS Marketplace doesn't support prerelease versions"). A release candidate is a plain triple carrying a pre-release *bit* in the VSIX manifest (`Microsoft.VisualStudio.Code.PreRelease`), set at **package** time; `-rc.N` lives only on the git tag and GitHub release. **A version is pre-release or stable, never both** — publishing `10.4.30` as a pre-release burns that number, so RCs stop at GitHub. `MarketplaceVersion` normalises all of this.
5. **`package.json`'s `"version": "0.0.0"` is intentional.** The build stamps the real version via `vsce package --no-update-package-json`, so CI never dirties the tree. `package.json` stays the source of truth for everything *except* the version.
6. **`.vscodeignore` ships exactly one file out of `node_modules`** — `mermaid/dist/mermaid.min.js`, loaded by the graph webview as a classic `<script>`. Adding a runtime dependency means adding it there too, or it won't be in the `.vsix`.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Run the build once to generate it:

## Versioning

The extension's `major.minor` track the Fallout release line it targets — 10.4.x builds against Fallout 10.4 — while the patch moves independently. A mismatch between the extension and the framework your workspace builds with surfaces as a non-blocking warning.
The extension's `major.minor` track the Fallout release line it targets — 10.5.x builds against Fallout 10.5 — while the patch moves independently. A mismatch between the extension and the framework your workspace builds with surfaces as a non-blocking warning.

Versions are computed by [Nerdbank.GitVersioning](https://github.com/dotnet/Nerdbank.GitVersioning) from `version.json`, the same as the framework itself; the build fails if the declared line drifts from the Fallout version it actually references. Release candidates are published as GitHub pre-releases only.

Expand Down
2 changes: 1 addition & 1 deletion build/_build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Fallout.Common" Version="10.4.0" />
<PackageReference Include="Fallout.Common" Version="10.5.0" />
<!-- Versioning tool, resolved out of the package folder by [NuGetTool]. Downloaded rather
than referenced: it is a CLI the build shells out to, not a library it compiles against. -->
<PackageDownload Include="nbgv" Version="[3.10.91]" />
Expand Down
2 changes: 1 addition & 1 deletion docs/branching-and-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ git push -u origin support/v10.4
# then, on develop, retarget version.json + the pinned Fallout.Common together
```

There are **no support lines today**: `main` targets Fallout 10.4 and there is no newer line to move to. Nothing to cut yet.
There are **no support lines yet**. `develop` targets Fallout 10.5; `main` still targets 10.4 until `develop` is promoted. Cut `support/v10.4` from `main` (commands above) **before** that promotion, so 10.4 keeps a home for hotfixes.

## Protection

Expand Down
2 changes: 1 addition & 1 deletion docs/releasing.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Versioning, channels, and the runbook for every kind of release. Branch model in

[Nerdbank.GitVersioning](https://github.com/dotnet/Nerdbank.GitVersioning) computes the version from `version.json`, the same as the framework repo.

- `version.json`'s `version` pins the **Fallout release line** this extension targets (`10.4`). The third component is the git height and moves on its own.
- `version.json`'s `version` pins the **Fallout release line** this extension targets (`10.5`). The third component is the git height and moves on its own.
- The build **asserts** the declared line still matches the referenced `Fallout.Common`. Bumping one without the other fails the build rather than shipping a version that misstates what it targets.
- `versionHeightOffset` exists because height restarts when `version.json`'s `version` changes. Marketplace versions must increase monotonically, so the offset keeps the sequence moving forward.

Expand Down
2 changes: 1 addition & 1 deletion nuget.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<configuration>
<packageSources>
<!-- Cleared so a machine-level feed can't shadow the pinned Fallout packages.
Fallout 10.4.0 (framework + CLI) ships on nuget.org, so that is the only
Fallout 10.5.0 (framework + CLI) ships on nuget.org, so that is the only
source needed — the private GitHub Packages feed the -preview dogfood
builds required is gone, along with its token. -->
<clear />
Expand Down
2 changes: 1 addition & 1 deletion plugins/Fallout.Vsce/Fallout.Vsce.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<ItemGroup>
<!-- Fallout.Common only: the components here mirror Fallout.Components' shape but do not
depend on it, so a consumer can take this plugin without pulling that package in. -->
<PackageReference Include="Fallout.Common" Version="10.4.0" />
<PackageReference Include="Fallout.Common" Version="10.5.0" />
</ItemGroup>

</Project>
16 changes: 10 additions & 6 deletions src/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,24 @@ const warned = new Set<string>();

/**
* Versioning contract: the extension's major.minor track the Fallout framework
* release line (e.g. 10.4.x against Fallout 10.4); the patch moves independently.
* The schema `version` is the hard gate, the major.minor comparison a drift warning.
* release line (e.g. 10.5.x against Fallout 10.5); the patch moves independently.
* The schema `version` is the hard gate; the major.minor comparison is a soft warning
* raised only when the workspace's Fallout is newer than the extension's line.
*/
export function checkCompatibility(graph: BuildGraph, extensionVersion: string): void {
let message: string | undefined;
if (graph.version !== SUPPORTED_SCHEMA_VERSION) {
message = `Fallout: build-graph.json uses schema v${graph.version}, but this extension understands v${SUPPORTED_SCHEMA_VERSION}. ` +
'Update the extension or the Fallout package — the view may be incomplete.';
} else if (graph.falloutVersion) {
const [exMajor, exMinor] = extensionVersion.split('.');
const [fwMajor, fwMinor] = graph.falloutVersion.split('-')[0].split('.');
if (exMajor !== fwMajor || exMinor !== fwMinor) {
const [exMajor, exMinor] = extensionVersion.split('.').map(Number);
const [fwMajor, fwMinor] = graph.falloutVersion.split('-')[0].split('.').map(Number);
// Warn only when the workspace's Fallout is newer than the extension's line.
// Older lines (e.g. 10.4) stay supported down to the graph's first release.
const workspaceNewer = fwMajor > exMajor || (fwMajor === exMajor && fwMinor > exMinor);
if (workspaceNewer) {
message = `Fallout: this workspace builds with Fallout ${graph.falloutVersion}, but the extension is versioned ${extensionVersion} ` +
`(coupled to Fallout ${exMajor}.${exMinor}). Things may not line up.`;
`(coupled to Fallout ${exMajor}.${exMinor}). Update the extension — things may not line up.`;
}
}
if (message && !warned.has(message)) {
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// Unlike the framework, prerelease-ness is NOT expressed here. Both marketplaces reject
// semver prerelease versions outright, so a release candidate is a plain triple carrying a
// pre-release bit in the VSIX manifest, requested per-build via --pre-release.
"version": "10.4",
"version": "10.5",

// Every branch that can produce a distributable build (docs/branching-and-release.md).
// A non-public ref makes NB.GV append -g<sha>, which MarketplaceVersion strips anyway —
Expand Down