Files
Language-Server/docs/roadmap/06-native-vbs-tooling.md
T
faumaray da8003f6d4 Implement the VLS roadmap on the native VBS build
Native VBS and CMake builds of the server and every registered suite:
protocol and document sync, VBS/compdb providers, stock GCC diagnostics
(including in-process default profile preparation), the stock occurrence
observer and hover/definition, the bounded Scheduler, C++ module graph,
scan and artifact cache with real CMI production, the context-aware
symbol index with schema-2 snapshot migration, navigation and guarded
rename, reflection provenance with splice-origin extraction, index-backed
completion and signature help, live GCC worker control with a registered
DAP suite, and the Neovim and VS Code clients.

VoidLibrary follows main. The private GCC 16.2.0 frontend is reproduced
from the versioned patches and verified stepping reflection/template code
with projected values 17/34 and 41/82.
2026-12-05 14:06:50 +03:00

3.4 KiB

06 — Native VBS tooling export and consumer

Status: The passive VBS v1 reader and eight generation tests pass. It follows the selector, profile status and selected immutable compilation database. A richer producer export and its target, dependency, environment and module details remain upstream dependencies. Requirements: R-008,R-012,R-021,R-023 Dependencies: 04,05; live acceptance additionally requires separately owned VBS graph/toolchain/editor/module producer work.

Ownership and boundaries

Proposed Sol consumer: NEW src/build/vbs/, include/vls/build/vbs/, tests/build/vbs/. Root owns shared export contract; VBS producer is a separate upstream task. 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

NEW immutable tooling manifest and atomically published selection reference. Required sections: protocol/capabilities; workspace/build/profile/target/context identities; semantic command and environment; editable/snapshot/generated mappings; module/prerequisite graph; freshness/readiness; artifact lifetime. Configure a manifest locator explicitly until producer discovery is agreed.

Implementation sequence

  1. Freeze the contract jointly with VBS's documented GraphGeneration/EditorGeneration/SelectionTicket semantics, distinguishing existing declarations from proposed resolved records.
  2. Build the consumer against valid/invalid fixtures, including source-command alternatives, host-description contexts and retained generated artifacts. Do not parse vbs_describe as a native provider.
  3. Observe publication hints, reread complete manifests and reconcile on overflow/restart. Retain generation/artifact references during analysis and define producer retention before eviction.
  4. Connect an explicitly trusted metadata-refresh operation only after upstream availability. Keep generator/package/fetch/lock changes outside automatic refresh. Add live Library/VBS acceptance once producer exists.

Failure behavior and constraints

Unsupported major/required capability, broken selection reference, missing retained artifacts or incomplete projections produce explicit status. A last-valid export remains labeled stale. Watchers cannot steal editor selection; late generations cannot override newer selection tickets.

Acceptance scenarios

  1. Test truncated publication, incompatible schema, dangling generations, restart and artifacts retained while an old consumer is active.
  2. Switch profiles with reverse completion, refresh an unselected profile and preserve all configured target alternatives.
  3. Prove passive reads run nothing; missing generated headers/BMIs remain unready; perform eventual live producer/consumer tests before claiming native support.

Verification and integration

Proposed NEW CTest label: vbs-provider. Once implemented, register a nonzero suite and run:

dev cpp-gcc -c ctest --test-dir build/bootstrap -L vbs-provider --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 prior complete manifests and selection provenance. Disable the consumer without deleting VBS-owned state; cross-repo producer changes require their own review and rollback contract.