Repository navigation
Remove the deprecated --preview and --preview-list devtools flags - #1829
Alexandre Zollinger Chohfi (azchohfi) wants to merge 1 commit into
Conversation
They were renamed to --devtools run / --devtools list before the first public preview. Drops the parser aliases, the DevtoolsCliOptions.UsedDeprecatedPreview and PreviewAndDevtoolsConflict parameters, the deprecation warning, and the VS Code extension's pre-rename fallback. The doc pipeline now launches doc apps with --devtools run --vscode. Relates to #1819. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the migration from deprecated preview flags to --devtools.
No open issues 🎉
What changed in this PR
Removes deprecated preview flags as part of #1819’s compatibility cleanup, standardizing Reactor’s developer tooling on --devtools.
Changes:
- Removes preview aliases, related option fields, warnings, and conflict handling.
- Migrates screenshot launches and removes the VS Code fallback, with regression tests.
- Updates documentation, generated API references, and migration notes.
| File | Description |
|---|---|
| tools/Reactor.DocPipeline/WinAppCapture.cs | Updates launch documentation. |
| tools/Reactor.DocPipeline/ScreenshotCapture.cs | Launches captures with --devtools run. |
| tests/Reactor.Tests/Hosting/ReactorFeaturesTests.cs | Removes obsolete conflict assertion. |
| tests/Reactor.Tests/Devtools/CliFlagParsingTests.cs | Verifies removed flags no longer activate devtools. |
| tests/Reactor.DocPipeline.Tests/CaptureOriginTests.cs | Checks migrated capture arguments. |
| src/vscode-reactor/test/extension.test.cjs | Tests launch arguments and absence of fallback. |
| src/vscode-reactor/src/extension.ts | Removes legacy relaunch and telemetry paths. |
| src/vscode-reactor/out/extension.js.map | Refreshes compiled source mappings. |
| src/vscode-reactor/out/extension.js | Updates compiled extension behavior. |
| src/Reactor/Hosting/ReactorApp.cs | Removes obsolete flag-conflict handling. |
| src/Reactor/Hosting/Devtools/DevtoolsCliParser.cs | Removes aliases and compatibility fields. |
| src/Reactor.Devtools/DevtoolsHost.cs | Removes the deprecation warning. |
| skills/reactor.api.txt | Updates exported API signatures. |
| README.md | Updates preview commands and setup guidance. |
| plugins/reactor/skills/reactor-dsl/references/reactor.api.txt | Synchronizes the plugin API index. |
| docs/security/threat-model.md | Updates activation guidance and server paths. |
| docs/guide/vs-extension.md | Removes obsolete fallback documentation. |
| docs/guide/source-mapping.md | Updates overlay terminology. |
| docs/guide/reference/diagnostics/devtools.md | Refreshes generated options reference. |
| docs/guide/devtools.md | Removes deprecated alias guidance. |
| docs/contributing/doc-pipeline.md | Documents the migrated capture command. |
| docs/_pipeline/templates/vs-extension.md.dt | Removes fallback guidance from its template. |
| docs/_pipeline/templates/source-mapping.md.dt | Updates terminology in the source template. |
| docs/_pipeline/templates/devtools.md.dt | Removes alias guidance from its template. |
| CHANGELOG.md | Records removals and migration requirements. |
Review effort: Balanced
📦 Build metricsArtifact sizes for Packages (compressed .nupkg)
Assemblies in Microsoft.UI.Reactor
Assemblies in Microsoft.UI.Reactor.Advanced
Assemblies in Microsoft.UI.Reactor.Devtools
✅ smaller / |
🧪 Merged coverageCoverage for
No coverage change beyond the noise floor. ✅ ✅ higher / |
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
374cad000fee051aeb9fb86fc3f0a91ac02655d1--previewlaunch on main and the new--devtools runlaunch, on the same machine.↑ Parser, devtools and DocPipeline tests pass, and the VS Code smoke test fails against the old compiled extension.
↑ Release build of the solution shows no compiler errors.
↓ The three
src/vs-reactorprojects could not be restored locally (TLS to nuget.org), so CI is the only check for them. They don't reference anything removed.↓ CI has not run yet.
Summary
Drops the
--previewand--preview-listaliases. They were renamed to--devtools runand--devtools listin 27e89d9, before the first public preview, so every published package already takes the new names.Everything in the repo that still used the old flags now uses
--devtools. The doc pipeline launches doc apps with--devtools run --vscode --fps 5. Bothdev-toolingscreenshots come out byte-identical to what the old launch produces. The VS Code extension loses its[preview]stdout sniff, the relaunch with--preview --vscode, and thereactor_preview_launchtelemetry name. README, the devtools / vs-extension / source-mapping guides, the doc-pipeline contributor doc and the threat model are updated too. The README's CLI preview section still mentioned apreview: trueparameter onReactorApp.Runthat no longer exists, so that section is rewritten.DevtoolsCliOptionsloses itsUsedDeprecatedPreviewandPreviewAndDevtoolsConflictpositional parameters, and the conflict error and deprecation warning go with them.Linked issue / spec
Relates to #1819
Test plan
dotnet test tests/Reactor.Tests --filter-class "*CliFlagParsingTests" --filter-class "*ReactorFeaturesTests" --filter-class "*Devtools*": 556 passed, 2 skippeddotnet test tests/Reactor.DocPipeline.Tests: 593 passedsrc/vscode-reactor:npm run compilethennpm run smoke, 4/4 passed. The new launch-args test fails against the oldout/extension.js.compile --topic devtoolson this branch andcompile --topic devtools/--topic hot-reloadon anorigin/mainworktree, both on the same machine.preview-app.pnganditeration-demo.pnghave the same SHA-256 in both runs. The recaptured images are not committed.dotnet restore Reactor.slnxthendotnet build Reactor.slnx --no-restore -c Release(withNuGetAudit=falsebecause of a local proxy): no compiler errors. Onlysrc/vs-reactor(3 projects) failed, with NU1301 restore errors from the proxy.mur --regen-api(both copies),compile --reference-only, and the three edited guide topics compiled.pr-reviewskill (7 dimensions plus a GPT cross-check). Fixed what it found: the threat model activation line now covers--embed, stalePreviewCaptureServer/DevtoolsMcpServerpaths fixed, a duplicate test removed, the smoke test hardened, and the XML doc no longer advertises--devtools-list.Risk / breaking changes
DevtoolsCliOptionsdrops two positional parameters, so its constructor andDeconstructchange. Nothing outside the parser builds it.--previewnow runs as a normal launch. I left out a "removed, use --devtools" message on purpose. Every package that accepted--previewalready printed a deprecation warning, and a permanent hint would hold on to a generic flag name apps may want for themselves.Microsoft.UI.Reactor.Devtoolshas to match theMicrosoft.UI.Reactorversion. That was already true because ofInternalsVisibleTo, and the CHANGELOG entry says so.