Apply versioned workspace edits in the VS Code client

applyRename accepts changes or documentChanges with per-document
versions, refusing both at once, resource operations and stale
versions before applying one WorkspaceEdit. The disposable
extension-host acceptance covers the versioned apply and refusals.
This commit is contained in:
faumaray committed 2026-12-06 02:34:13 +03:00
1 parent a075bd55d8
commit 5f41870a75
4 files changed
+76 -4

No files matched your search

+1 -1
View File
@@ -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 | Neovim applies `changes` and versioned `documentChanges`; VS Code applies `changes` |
| Client-side application of server-issued workspace edits | Neovim and VS Code both apply `changes` and versioned `documentChanges` |
| 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 |
+13
View File
@@ -61,6 +61,19 @@ 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 VS Code client
`applyRename` accepts a full WorkspaceEdit: a `changes` map or versioned
`documentChanges`. Choosing both, a resource operation, or a stale document
version is refused before the single WorkspaceEdit is applied; the existing
version/text recheck stays. The disposable extension-host acceptance passed:
```
VS Code client passed: LSP status, replay session, timeline, source, stale
rejection and transactional rename
```
covering the versioned apply, stale-version refusal and resource-operation
refusal.
## December 6 versioned workspace edits in the Neovim client
`clients/neovim/lua/vls/init.lua` `apply_workspace_edit` now accepts a full