apply_workspace_edit accepts a full WorkspaceEdit: a changes map or documentChanges with versioned TextDocumentEdits. Stale tracked versions and resource operations are refused before any buffer is touched, keeping the transactional rollback. The headless rename test covers the versioned apply and both refusals.
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.
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
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.