Skip to main content

Module debug_launch

Module debug_launch 

Source
Expand description

Debug launch-config generation — a port of TS createDebugProfile + debugProfileToLaunchDraft + createLaunchPreview and the launchJsonCore merge plan. Produces VS Code launch.json drafts for alp debug-config.

Relies on serde_json’s preserve_order feature so emitted JSON keeps the same key order as the TypeScript CLI.

Structs§

LaunchJsonWritePlan
Result of merging a draft into launch.json: the serialized document plus whether a same-named configuration was overwritten.

Functions§

create_launch_draft
Build the VS Code launch configuration draft for a target/server, mirroring TS createDebugProfiledebugProfileToLaunchDraft. Errors (with the TS message) when the server is not valid for the target.
create_launch_json_write_plan
Merge draft into an existing launch.json (or a fresh document), replacing any configuration with the same name. Mirrors TS createLaunchJsonWritePlan.
launch_preview_document
The launch.json-shaped preview document: {version, configurations:[draft]}.
launch_preview_notes
The static advisory notes attached to a launch preview (TS createLaunchPreview).