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.
52 lines
1.9 KiB
Markdown
52 lines
1.9 KiB
Markdown
# VoidLanguageServer VS Code client
|
|
|
|
Thin VS Code extension for the installed `vls` language server and the
|
|
`vls-dap` replay adapter. All language, build and debugger semantics stay in
|
|
the C++ server.
|
|
|
|
## Build
|
|
|
|
Node and npm are development prerequisites. Dependencies are fetched only by
|
|
this explicit step, never by the acceptance test:
|
|
|
|
```sh
|
|
cd clients/vscode
|
|
npm install
|
|
npm run compile
|
|
```
|
|
|
|
## Use
|
|
|
|
| Setting | Meaning |
|
|
| --- | --- |
|
|
| `vls.serverPath` | Absolute path to `vls` (default: `vls` on `PATH`). |
|
|
| `vls.dapPath` | Absolute path to `vls-dap` (default: `vls-dap` on `PATH`). |
|
|
| `vls.gccProfile` | Absolute prepared stock GCC profile for editor diagnostics. |
|
|
| `vls.provider` | Build-context preference: `auto`, `vbs`, `compdb` or `none`. |
|
|
|
|
Commands: `VLS: Start Language Server`, `VLS: Provider Status`,
|
|
`VLS: Analysis Status`, `VLS: Replay Recording`, `VLS: Stop Language Server`.
|
|
The C++ rename provider forwards `prepareRename`/`rename` to the server; the
|
|
exported `applyRename` applies an LSP `changes` map through one WorkspaceEdit
|
|
after checking the document versions captured at preparation, so a stale plan
|
|
is refused without partial edits.
|
|
The `VLS replay` debug configuration launches an absolute recording; the
|
|
extension renders only bounded server replies and rejects a stale
|
|
session/generation.
|
|
|
|
## Acceptance
|
|
|
|
The test runs a disposable extension host with temporary user-data and
|
|
extensions directories; it does not touch the user's profile.
|
|
|
|
```sh
|
|
python3 -B tests/native/VscodeClient.py \
|
|
--server "$PWD/build/native/profiles/debug/out/bin/vls" \
|
|
--adapter "$PWD/build/native/profiles/debug/out/bin/vls-dap" \
|
|
--trace "$PWD/tests/debug/fixtures/integral-17.vls"
|
|
```
|
|
|
|
On Nix, the `code` launcher detaches from the terminal, so the test invokes the
|
|
application binary (`lib/vscode/code`) directly to keep the extension host's
|
|
exit status and output.
|