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.
This commit is contained in:
1 parent
ca04975d54
commit
da8003f6d4
310 files changed
+47552
-480
No files matched your search
@@ -0,0 +1,55 @@
|
||||
# VoidLanguageServer Neovim client
|
||||
|
||||
Thin Neovim LSP and replay-DAP integration for the installed `vls` and
|
||||
`vls-dap`. All language, build and debugger semantics stay in the C++ server;
|
||||
this plugin only starts processes, forwards user actions and renders bounded
|
||||
replies.
|
||||
|
||||
## Setup
|
||||
|
||||
Add this directory to `runtimepath` (for example with your plugin manager), or
|
||||
copy `plugin/` and `lua/` into a Neovim config directory. Neovim 0.12.6 or newer
|
||||
is tested. `nvim-dap` is optional and only needed for replay.
|
||||
|
||||
```lua
|
||||
require("vls").setup({
|
||||
server = "/absolute/path/to/vls", -- default: vls on PATH
|
||||
dap_adapter = "/absolute/path/to/vls-dap", -- default: vls-dap on PATH
|
||||
gcc_profile = nil, -- absolute prepared GCC profile
|
||||
provider = nil, -- auto, vbs, compdb or none
|
||||
})
|
||||
```
|
||||
|
||||
## Commands
|
||||
|
||||
| Command | Action |
|
||||
| --- | --- |
|
||||
| `:VlsStart` | Start the server for the current buffer and workspace root. |
|
||||
| `:VlsStatus` | Request `voidLanguageServer/providerStatus`. |
|
||||
| `:VlsAnalysisStatus` | Request `voidLanguageServer/analysisStatus`. |
|
||||
| `:VlsReplay {trace}` | Launch `vls-dap --replay` on an absolute recording. |
|
||||
| `:VlsSession` | Subscribe to the active replay session and generation. |
|
||||
| `:VlsTimeline [start] [count]` | Render a bounded timeline page. |
|
||||
| `:VlsFrames [start] [count]` | Render a bounded frame page. |
|
||||
| `:VlsSource` | Render the captured source of the active replay. |
|
||||
| `:VlsStop` | Terminate the replay. |
|
||||
| `:VlsRename {name}` | Request a guarded rename and apply it transactionally. |
|
||||
|
||||
Replies from a generation older than the subscribed one are rejected instead
|
||||
of being rendered. Rename edits are validated for every buffer before any is
|
||||
touched; if a buffer write fails, all already-changed buffers are restored
|
||||
exactly and the transaction reports the failure.
|
||||
|
||||
## Acceptance
|
||||
|
||||
```sh
|
||||
VLS_SERVER="$PWD/build/native/profiles/debug/out/bin/vls" \
|
||||
VLS_DAP="$PWD/build/native/profiles/debug/out/bin/vls-dap" \
|
||||
VLS_TRACE="$PWD/tests/debug/fixtures/integral-17.vls" \
|
||||
VLS_NVIM_DAP="$PWD/build/dap-evidence/nvim-dap" \
|
||||
nvim --headless -u NONE -i NONE -l tests/native/NeovimClient.lua
|
||||
```
|
||||
|
||||
The test uses a temporary workspace, does not read or write user
|
||||
configuration, and checks LSP status, a real replay session, timeline paging,
|
||||
captured source, stale-generation rejection and shutdown.
|
||||
Reference in new issue
Block a user