Apply versioned workspace edits in the Neovim client
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.
This commit is contained in:
1 parent
7e3ce6fc6c
commit
a075bd55d8
4 files changed
+86
-7
No files matched your search
@@ -39,7 +39,7 @@ missing part. Updated December 5, 2026 after semantic tokens and inlay hints.
|
||||
| Overload-set signature help | observed overloads are listed with the compiler-selected one first; visibility and overload resolution are not proven |
|
||||
| textDocument/formatting | needs a plan |
|
||||
| callHierarchy / typeHierarchy | prepare, incomingCalls and outgoingCalls are implemented and served; outgoing calls are verified over stdio now that the observer reports full function extents. Type hierarchy is open. |
|
||||
| Client-side application of server-issued workspace edits | rename and code actions return edits the clients apply directly |
|
||||
| Client-side application of server-issued workspace edits | Neovim applies `changes` and versioned `documentChanges`; VS Code applies `changes` |
|
||||
| Applying multi-file renames through client buffers | plans can be ready; application is client work |
|
||||
| richer token types | legend has `function` and `type` (class, base, definition names) plus a `declaration` modifier; more types need further compiler spans |
|
||||
|
||||
|
||||
@@ -61,6 +61,21 @@ start coordinate only, so ranges are zero-width until an end is available.
|
||||
LSP adapters and index/rename/debugging integration remain open. `vbs test`
|
||||
passed all 17 native suites; CMake passed the reflection and trace suites.
|
||||
|
||||
## December 6 versioned workspace edits in the Neovim client
|
||||
|
||||
`clients/neovim/lua/vls/init.lua` `apply_workspace_edit` now accepts a full
|
||||
WorkspaceEdit: a plain `changes` map as before, or `documentChanges` with
|
||||
versioned TextDocumentEdits. A document whose tracked LSP version differs is
|
||||
refused before any buffer is touched, resource operations are refused
|
||||
explicitly, and the existing transactional rollback is unchanged.
|
||||
`tests/native/NeovimRename.lua` runs headless and now covers the versioned
|
||||
apply, stale-version refusal and resource-operation refusal:
|
||||
```
|
||||
Neovim rename passed: atomic apply, injected-failure rollback, invalid range,
|
||||
read-only refusal, documentChanges and stale-version refusal
|
||||
```
|
||||
The VS Code client still applies `changes` only.
|
||||
|
||||
## December 6 reflection definition and capability advertisement
|
||||
|
||||
`reflection::definition_at` selects the innermost entity covering a position
|
||||
|
||||
Reference in new issue
Block a user