reflection::definition_at returns the innermost covering entity's first reflected-declaration link (else its first chain link), with a registered test. The server serves textDocument/definition over a recorded reflection snapshot and now advertises hover and definition whenever a snapshot is loaded, not only with the occurrence observer. A real stdio session resolved the splice site to the reflected declaration range.
51 lines
3.4 KiB
Markdown
51 lines
3.4 KiB
Markdown
# LSP parity matrix
|
|
|
|
Target (user direction): clangd feature parity plus every LSP capability that
|
|
applies to a C++ language server. Status is evidence-based; `PARTIAL` names the
|
|
missing part. Updated December 5, 2026 after semantic tokens and inlay hints.
|
|
|
|
## Implemented and verified
|
|
|
|
| Capability | Evidence |
|
|
| --- | --- |
|
|
| initialize / initialized / shutdown / exit | native transcripts and registered tests |
|
|
| textDocument sync (full + incremental, UTF-8/UTF-16) | document suite, real stdio corpora |
|
|
| publishDiagnostics (stock GCC, in-process default profile) | diagnostic suite, stdio corpus |
|
|
| textDocument/hover, definition | stock occurrence corpus |
|
|
| textDocument/hover and definition over reflection snapshots | recorded-snapshot stdio session |
|
|
| textDocument/references, prepareRename, rename | navigation suite, stock corpus refusals |
|
|
| textDocument/completion (+ completionItem/resolve) | `vls_feature_tests`, real stdio session |
|
|
| textDocument/signatureHelp | `vls_feature_tests`, real stdio session |
|
|
| textDocument/documentSymbol | `vls_index_tests` path query, real stdio session |
|
|
| textDocument/documentHighlight | `vls_feature_tests`, real stdio session |
|
|
| textDocument/selectionRange, foldingRange | `vls_feature_tests`, real stdio session |
|
|
| textDocument/codeAction (quickfix) | `vls_feature_tests` + `vls_diagnostic_tests`, real stdio session |
|
|
| textDocument/semanticTokens/full | `vls_feature_tests`, real stdio session |
|
|
| textDocument/inlayHint (parameter and return types) | `vls_feature_tests`, real stdio session |
|
|
| textDocument/codeLens + workspace/executeCommand (`vls.showReferences`) | `vls_feature_tests`, real stdio session |
|
|
| workspace/symbol | stock occurrence corpus |
|
|
| textDocument/documentLink (quoted includes) | `vls_feature_tests`, real stdio session |
|
|
| textDocument/formatting (clang-format) | `vls_feature_tests`, real stdio session |
|
|
| workspace fileOperations (didCreate/didRename/didDelete) | `vls_feature_tests`, real stdio session |
|
|
| workspace/willRenameFiles (include updates) | `vls_feature_tests`, real stdio session |
|
|
| voidLanguageServer/analysisStatus, providerStatus | stdio corpora |
|
|
| Debug adapter (DAP) separately through `vls-dap` | `vls_live_tests`, `vls_dap_tests` |
|
|
|
|
## Open
|
|
|
|
| Capability | Notes |
|
|
| --- | --- |
|
|
| Compiler-native completion with visibility proof | provided through the compiler-agnostic `--completion-index` interface (D-032); visibility proof is the producer's claim. The built-in index-backed completion remains incomplete without it. |
|
|
| 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 |
|
|
| 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 |
|
|
|
|
## Next slices
|
|
|
|
1. Generic-compiler degradation: every compiler-specific feature names its fallback.
|
|
2. Broader index migrations.
|
|
3. Client-side application of server edits.
|