Skip to content

Add --plan-no-open to show the execution plan without opening a browser - #760

Closed
dennisdoomen wants to merge 2 commits into
Fallout-build:developfrom
dennisdoomen:fork/dennisdoomen/claude/jetbrains-rider-fallout-plugin-901350
Closed

dennisdoomen wants to merge 2 commits into
Fallout-build:developfrom
dennisdoomen:fork/dennisdoomen/claude/jetbrains-rider-fallout-plugin-901350

Conversation

@dennisdoomen

Copy link
Copy Markdown
Collaborator

--plan always opened the plan HTML in the default browser. IDE plug-ins (Rider) need to show the plan themselves.

What changed

  • Add the --plan-no-open switch (or PLAN_NO_OPEN=true). It writes execution-plan.html but does not open it. Default --plan behavior is unchanged.
  • Make HandlePlanRequestsAttribute testable without statics:
    • Add internal IFalloutBuild.GetParameter<T>(name) and IFalloutBuild.Exit(code).
    • Exit stops the build after OnBuildInitialized and returns the exit code. It replaces Environment.Exit, which would kill the test host.
    • Open the file through an injectable internal IFileOpener.
  • Test OnBuildInitialized directly with FakeItEasy. Add it to Directory.Packages.props and the Dependabot test group.

For reviewers

  • No public API change: both new IFalloutBuild members are internal.
  • After Exit, later extensions of the same event are skipped. IOnBuildFinished extensions still run. This matches the old Environment.Exit behavior.
  • Help, shell completion and CI config generation still call Environment.Exit. Moving them to Build.Exit is a follow-up.
  • InternalsVisibleTo("DynamicProxyGenAssembly2") lets FakeItEasy fake the internal members.
  • No unit test covers the early return in BuildManager. I checked it by running --plan --plan-no-open on this repo's build.

dennisdoomen and others added 2 commits November 21, 2026 10:19
- --plan always opened the plan HTML in the default browser.
- New hidden switch --plan-no-open (or PLAN_NO_OPEN=true) only writes the file.
- Needed so IDE plug-ins (Rider) can show the plan themselves.
- Default --plan behaviour is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Let HandlePlanRequestsAttribute run without static dependencies so its
--plan-no-open behavior can be tested end to end.

- Add internal IFalloutBuild.GetParameter and IFalloutBuild.Exit.
- Stop the build after OnBuildInitialized when an extension calls Exit,
  instead of killing the process with Environment.Exit.
- Open the plan file through an injectable IFileOpener.
- Test the attribute with FakeItEasy and add it to Dependabot.
@dennisdoomen
dennisdoomen requested a review from a team as a code owner November 21, 2026 12:24
@dennisdoomen dennisdoomen added the enhancement New feature or request label Nov 21, 2026
@dennisdoomen

Copy link
Copy Markdown
Collaborator Author

Closing: duplicate of an existing PR.

@dennisdoomen
dennisdoomen deleted the fork/dennisdoomen/claude/jetbrains-rider-fallout-plugin-901350 branch November 21, 2026 12:29
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.

1 participant