Files
Language-Server/docs/agent-workflow/tasks/T-PLAN-EDITORS-022.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

6.6 KiB

Plan the two editor clients against the integrated LSP and DAP services

Task ID: T-PLAN-EDITORS-022 Role: astra_planner Status: READY

1. Context and baseline

The shared VoidLanguageServer repo is on feat/implement-roadmap at ca04975 with uncommitted integration. Stock diagnostics and passive build metadata operate over LSP. A real C++ replay adapter and /v1 inspection API run over DAP. tests/native/NeovimReplay.lua already drove an actual nvim-dap session with nested values 17/34, pages and source bytes in Neovim 0.12.6. The installed code reports 1.147.0, commit 8a14f0cc1b08d531eb83255ea3764ae22aa932b5. No client packages exist. Live, full source mapping, guarded rename, indexing and broader backend semantics remain independent.

2. Objective and deliverables

Plan two independently implementable thin client packages for VS Code and Neovim, using the actual LSP and replay DAP in normal editor entry points. Resolve test dependencies and issue precise implementer/preflight interface advice. Keep full client roadmap acceptance with separate remaining live/semantic/transaction gates.

3. Scope and non-goals

Client startup/config, passive provider status, opt-in stock diagnostics, user-selected offline replay, read-only bounded timeline/frames/sources, stale callback rejection, disconnect cleanup, real headless/extension-host proof. No distribution, source edits, UI unrelated to debugger/IDE, or extra servers. Avoid implementing user-space semantic features in Lua/TypeScript.

4. Files to inspect

Read docs/roadmap/22-vscode-client.md and docs/roadmap/23-neovim-client.md, tests/native/{NeovimReplay.lua,DapReplay.py,StockDiagnostics.py}, src/debug/dap/{Main.cpp,Projection.cpp}, src/debug/inspection/ReplaySession.cpp, src/main.cpp, src/Server.cpp, README.md. Consult current official Neovim 0.12.6 and nvim-dap docs and VS Code Language/Debug extension APIs. build/dap-evidence/nvim-dap is the isolated upstream checkout cfa2d58f4537aca6ca83e2de1a0d9f1491121264. The reference DAP source is one capture; frame locations are logical only.

5. Write ownership and coordination

Write scope: none Private benign probes under build/plan-editors-022 are allowed. No edits to clients, tests, user configuration, VS Code profile, manifests, shared state or Git. Other agents share the checkout. Do not install plugins into users' environments or attach to existing editors. A test extension host must have disposable user-data and extensions directories and exit cleanly.

6. Implementation or investigation approach

Map the actual client command flow: user config selects installed binary and root, normal edit sends incremental notifications and receives stock diagnostics, status exposes selected build context. Dynamic adapter launches explicit absolute file selected in the current client action; one session and generation binds custom page/view replies. Request standard stored source by reference rather than reopening client-provided paths. Find available immutable/testable dependencies for TypeScript, vscode-languageclient and an actual VS Code host without changing user configs. Check current accessibility of a disposable display session or extension-host testing options. For Neovim prefer native LSP and optional nvim-dap instead of a new protocol client. Use editor APIs for scratch text and generation checks with captured session plus current subscription. Avoid script execution when rendering data.

7. Interfaces and data contracts

Existing LSP init, sync, voidLanguageServer/providerStatus, analysisStatus; CLI vls --stdio and launcher-only --workspace-root/--gcc-profile for stock diagnostics. Existing vls-dap --replay ABSOLUTE_TRACE, schemaVersion/sessionId/generation and vls/session,timeline,frames,seek; standard loadedSources/source. Only client-initiated user actions can choose a journal or process. No native HWND/platform UI, no separate network channel. Missing capabilities or peers should keep remaining functionality usable.

8. Dependencies and integration

Root owns build registration, shared API docs, release and actual integration. Client authors get disjoint clients/vscode/ and clients/neovim/. Normal tests cannot fetch tooling or install into external workspaces. Keep test-only opt-in or explicit dependency locator for externally installed editor and nvim-dap. Identify separate code/test packages so one editor can run if the other is unavailable.

9. Edge cases security and performance

Document unavailable process, known reference, multi-root scoping, executable configuration origin/trust, presence of a similarly named executable under workspace, omitted vs repeated settings, failed callbacks after stop/seek/disconnect switching/replaced buffers. Avoid duplicate clients, clearing third-party mappings/config/session listeners, opening an external debuggee or read-only generated content as a workspace file. Test source/data escaping, editor session shutdown and no stale content after switching editor sessions.

10. Acceptance criteria

  1. Source/API-confirmed normal LSP and DAP client path in each actual editor. 2. Chosen package/tool versions and reproducible real acceptance commands with optional development prerequisites. 3. Thin view schema, controls and error state without fabricated backend coverage. 4. Minimal initial deliverables, exact ownership, UX and lifecycle differentiating tests; retain later rename/live gates.

11. Verification commands and evidence

From root run nvim --version and code --version; do not activate normal user startup scripts. Inspect nvim-dap's checked commit with git -C build/dap-evidence/nvim-dap rev-parse HEAD. Read the existing headless test. If privately verifying VS Code, use the installed code executable, explicit user-data-dir, extensions-dir, locally created test fixture and process deadline; do not reuse a running editor profile. No account interaction or extension marketplace publication.

12. Constraints and stop conditions

Do not stage, commit, release, install global tools or open arbitrary projects. Report missing compatibility evidence instead of relying on screenshots or sample responses. Read only relevant code; no environment secret/config inspection. Do not ask the user or spawn additional agents.

13. Authorization and decisions

Full approved roadmap D-022, primary VBS D-025, authorized generic GPT-6.2 Astra at Max D-027/029. Current mode is local development; publishing extensions and project license are deferred.

14. Return format

T-PLAN-EDITORS-022 DONE/PARTIAL. Return verified versions/commands, two ownership-ready contracts, missing proof and acceptance cases. Send an early independent slice when ready.