3.2 KiB
22 — VS Code client, DAP integration and custom views
Status: PLANNED; no implementation claim Requirements: R-015,R-019,R-020 Dependencies: 02 for basic launch;16 and18-21 for full acceptance. May parallel23 after shared schemas freeze.
Ownership and boundaries
Proposed Sol client package: NEW clients/vscode/ with TypeScript tests and package metadata. Root serializes shared schemas/dependency-lock decisions. Future assignments must verify the then-current baseline and exact disjoint paths; these proposed scopes do not authorize work in another repository.
Contracts and data flow
Thin extension launches the C++ LSP/DAP executables, maps settings and provides timeline, template/constraint and entity/generated-source views. It does not implement compiler semantics. Guarded rename requires synchronized versioned buffers and verified transactional application. No production/debug server auto-download without explicit installation policy.
Implementation sequence
- Use supported VS Code language/debug APIs and pinned dependencies after current official-documentation verification. Make server path/version and workspace status visible; respect configured trust/execution boundaries.
- Implement DAP launch and shared-session attachment plus read-only webviews driven by21. Use bounded messages and content security restrictions; preserve source/stop generation in all async updates.
- Provide guarded rename integration: open affected documents, synchronize/recompute, validate version/content vector and apply only if the API's transaction guarantees are verified. Refuse unsafe multi-file edits.
- Document install/setup, profile/target override, explicit generated-input build action, live-debug start, trace replay and stale/failed states. Ordinary LSP remains useful if debug capability is unavailable.
Failure behavior and constraints
Missing/wrong server, rejected trust, unsupported backend or expired trace yields actionable status. Views cannot show stale data after a session switch. Do not bypass safety through a separate unguarded rename command or silently install compiler toolchains.
Acceptance scenarios
- Run extension-host tests with the actual server for launch, edits, completion/navigation, context switches and controlled failures.
- Test guarded multi-file rename with concurrent changes and induced application failure; require no partial buffer mutation.
- Exercise live and replay debugging, custom views, source navigation, cancellation/disconnect and no-debug-backend states.
Verification and integration
Proposed NEW CTest label: client-vscode. Once implemented, register a nonzero suite and run:
dev cpp-gcc -c ctest --test-dir build/bootstrap -L client-vscode --output-on-failure
This future command is not evidence that the label/tests exist now. Before dispatch, bind the fixtures above to actual targets and record prerequisites/side effects. Require fresh independent review of the implemented contract and affected integrations. Keep extension/server compatibility ranges explicit. Disable incompatible commands/views while preserving basic launch; do not overwrite user settings or uninstall unrelated extensions during rollback.