Handle workspace file-operation notifications

The server advertises didCreate/didRename/didDelete file operations
with file-scheme filters. A bounded core converts notifications into
canonical filesystem changes (rename as old-gone/new-present, non-file
URIs ignored, invalid URIs rejected) with registered tests, and
EditorDiagnostics invalidates every dependent index context for
changed or removed paths before re-queueing open documents. A real
stdio session observed the index become incomplete after a deleted
header, and a malformed notification left the server answering.
This commit is contained in:
faumaray committed 2026-12-05 16:03:06 +03:00
1 parent 130cb57a7f
commit 158125ace5
12 files changed
+248 -12

No files matched your search

+5 -4
View File
@@ -22,6 +22,7 @@ missing part. Updated December 5, 2026 after semantic tokens and inlay hints.
| textDocument/semanticTokens/full | `vls_feature_tests`, real stdio session |
| textDocument/inlayHint (parameter types) | `vls_feature_tests`, real stdio session |
| workspace/symbol | stock occurrence corpus |
| workspace fileOperations (didCreate/didRename/didDelete) | `vls_feature_tests`, real stdio session |
| voidLanguageServer/analysisStatus, providerStatus | stdio corpora |
| Debug adapter (DAP) separately through `vls-dap` | `vls_live_tests`, `vls_dap_tests` |
@@ -34,7 +35,7 @@ missing part. Updated December 5, 2026 after semantic tokens and inlay hints.
| textDocument/formatting | needs a plan |
| callHierarchy / typeHierarchy | needs compiler call/type relationships |
| textDocument/codeLens, executeCommand | command surface not designed |
| workspace edits and file operations | client-side application is also open |
| Client-side application of server-issued workspace edits | rename and code actions return edits the clients apply directly |
| Applying multi-file renames through client buffers | plans can be ready; application is client work |
| `EditorDiagnostics` reflection LSP wiring | the server has no reflection data source |
| semantic token modifiers / richer token types | legend is one type (`function`) from occurrences |
@@ -42,6 +43,6 @@ missing part. Updated December 5, 2026 after semantic tokens and inlay hints.
## Next slices
1. `workspace/applyEdit` and client-side application of ready rename plans.
2. call hierarchy from stock call facts.
3. Formatting via the selected compiler.
1. call hierarchy from stock call facts.
2. Formatting via the selected compiler.
3. code lens and executeCommand.