Skip to content

Offer to migrate a NUKE build from the command palette - #36

Draft
ChrisonSimtian wants to merge 3 commits into
developfrom
migrate-from-nuke
Draft

ChrisonSimtian wants to merge 3 commits into
developfrom
migrate-from-nuke

Conversation

@ChrisonSimtian

@ChrisonSimtian ChrisonSimtian commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Closes #33.

Open a NUKE build and the extension offers to migrate it with fallout-migrate.

  • Command Fallout: Migrate from NUKE… installs the tool if missing, runs fallout-migrate --dry-run and waits for it. Output goes to the "Fallout Migrate" Output channel. Only after a clean preview does it offer the real run.
  • The real run opens a fresh terminal, because the tool asks "Continue?" itself. A busy guard stops overlapping runs.
  • Install uses dotnet tool update -g Fallout.Migrate (installs or upgrades, never fails on "already installed"). The tool is found in ~/.dotnet/tools before PATH.
  • Detection scans each workspace folder up to 3 levels deep. A repo counts when it has a non-empty .nuke/ directory, or a _build.csproj with Nuke.* in Include, Update or Remove (either quote style), and no .fallout/. With several matches the command asks which one.
  • One-time prompt per NUKE repo. Closing it counts as "Not now".
  • The empty Build views show a "Migrate from NUKE…" link in such a repo and hide the generic "no build graph" text.
  • Activation also on .nuke/parameters.json, .nuke/build.schema.json and _build.csproj, so the prompt can appear before any graph exists.
  • The tree refreshes when the migration terminal closes, and when .fallout/ or .nuke/ appears or disappears.

Start reading at src/migrate.ts.

Verified

  • npm test passes: unit, webview and extension-host.
  • Unit tests cover detection on temp repos: quote styles, Update=, nested repos, migrated, empty and legacy .nuke, skipped directories, depth limit.
  • An extension-host test drives the migration terminal with a stub tool and checks that the refresh callback fires after it exits (it stays open after exit, so exitStatus is polled as well as the close event).

Not verified

  • Not tried by hand in VS Code: the notification buttons, the welcome content and the real install path. Please F5 once before merge.
  • The context key fallout.nukeRepo and the tree refresh after the rename are not asserted by a test.

Limits

  • Detection needs a _build.csproj, the name the migrator itself requires. Other build project names are not found.
  • The scan is synchronous and skips node_modules, .git, bin and obj. Not measured on a large monorepo.

@ChrisonSimtian ChrisonSimtian added this to the v10.5 milestone Nov 15, 2026
@ChrisonSimtian ChrisonSimtian added the enhancement New feature or request label Nov 15, 2026
@ChrisonSimtian ChrisonSimtian self-assigned this Nov 15, 2026
Add Fallout: Migrate from NUKE… to run fallout-migrate in the terminal, dry run first. Detect an unmigrated NUKE repo, show a one-time prompt and a welcome link in the empty Build views, and offer to install the tool when it is missing.
- Run the dry run first, wait for it, and only then offer the real run
- Install with `dotnet tool update -g` and find the tool on disk, not PATH
- Use a fresh terminal per run and a busy guard against overlapping runs
- Pick the NUKE build across all workspace folders; prompt once per repo
- Widen detection: quote styles, Update/Remove, nested repos, non-empty .nuke
- Hide the generic welcome text in NUKE repos
- Refresh the tree when the migration terminal closes
- Move detection to a vscode-free src/nuke.ts and unit test it on temp repos
- Extract openMigrationTerminal so an extension-host test can drive it with a stub tool
- Fix the migration terminal never reporting it was done: it stays open after exit, so poll exitStatus as well as the close event
@Fallout-build Fallout-build deleted a comment from coderabbitai Bot Nov 25, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate a NUKE build to Fallout from the command palette

1 participant