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
@@ -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