Serve parameter inlay hints from occurrence signatures
A bounded core finds top-level argument starts (nested brackets, literals and comments aware) and projects parameter-type hints from the compiler signature, filtered to the requested range. The server advertises inlayHintProvider and serves textDocument/inlayHint through EditorDiagnostics. Registered tests cover splitting, filtering, short signatures and bounds; a real stdio session returned the std::string_view hint for the fnv1a64 argument. Refresh the parity matrix.
This commit is contained in:
1 parent
12a71ff692
commit
130cb57a7f
12 files changed
+360
-10
No files matched your search
@@ -2,7 +2,7 @@
|
||||
|
||||
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.
|
||||
missing part. Updated December 5, 2026 after semantic tokens and inlay hints.
|
||||
|
||||
## Implemented and verified
|
||||
|
||||
@@ -20,6 +20,7 @@ missing part.
|
||||
| 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 types) | `vls_feature_tests`, real stdio session |
|
||||
| workspace/symbol | stock occurrence corpus |
|
||||
| voidLanguageServer/analysisStatus, providerStatus | stdio corpora |
|
||||
| Debug adapter (DAP) separately through `vls-dap` | `vls_live_tests`, `vls_dap_tests` |
|
||||
@@ -31,15 +32,16 @@ missing part.
|
||||
| Compiler-native completion with visibility proof | index-backed completion is explicitly incomplete |
|
||||
| Overload-set signature help | only the selected occurrence's signature is available |
|
||||
| textDocument/formatting | needs a plan |
|
||||
| textDocument/inlayHint | open |
|
||||
| textDocument/codeLens, executeCommand | command surface not designed |
|
||||
| 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 |
|
||||
| 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 |
|
||||
| inlay hints beyond parameter types | return-type and deduced-type hints need more compiler data |
|
||||
|
||||
## Next slices
|
||||
|
||||
1. Formatting and inlay hints.
|
||||
2. call/type hierarchy and code lens.
|
||||
3. executeCommand and workspace edits/file operations.
|
||||
1. `workspace/applyEdit` and client-side application of ready rename plans.
|
||||
2. call hierarchy from stock call facts.
|
||||
3. Formatting via the selected compiler.
|
||||
@@ -102,7 +102,7 @@ ingests occurrence facts after each analysis and the server answers
|
||||
Hash.hpp definition through it. Real persistence migrations and cross-file
|
||||
rename coverage remain open.
|
||||
|
||||
Index-backed completion (roadmap 14 first slice) is implemented: `include/vls/features/Completion.hpp`, `src/features/Completion.cpp` and registered `vls_feature_tests` cover prefix extraction, filtering with replacement ranges, label+kind deduplication, deterministic ranking and bounds. `Server.cpp` advertises `completionProvider` and answers `textDocument/completion` from the symbol index through `EditorDiagnostics::completion`; a real stdio session with the stock observer returned `fnv1a64` and `fnv1a64_update` at a real call site. Every result is marked incomplete because the index does not prove visibility. Signature help is now served from the compiler-provided occurrence signature (parameter labels and ranges, active parameter, innermost call selection) and advertised by the server. Document symbols are served from the index by path and document highlights from same-binding occurrence facts; both are advertised and were exercised over stdio with the stock observer. Selection and folding ranges are served from immutable document snapshots with registered bounded cores. Code actions now offer the compiler's own suggested fixes (quickfix) from retained published diagnostics, with SARIF fix decoding bound to the owner snapshot. Semantic tokens encode the proven call occurrences with a bounded one-type legend. Compiler-native completion with visibility proof and deferred detail resolution remain open.
|
||||
Index-backed completion (roadmap 14 first slice) is implemented: `include/vls/features/Completion.hpp`, `src/features/Completion.cpp` and registered `vls_feature_tests` cover prefix extraction, filtering with replacement ranges, label+kind deduplication, deterministic ranking and bounds. `Server.cpp` advertises `completionProvider` and answers `textDocument/completion` from the symbol index through `EditorDiagnostics::completion`; a real stdio session with the stock observer returned `fnv1a64` and `fnv1a64_update` at a real call site. Every result is marked incomplete because the index does not prove visibility. Signature help is now served from the compiler-provided occurrence signature (parameter labels and ranges, active parameter, innermost call selection) and advertised by the server. Document symbols are served from the index by path and document highlights from same-binding occurrence facts; both are advertised and were exercised over stdio with the stock observer. Selection and folding ranges are served from immutable document snapshots with registered bounded cores. Code actions now offer the compiler's own suggested fixes (quickfix) from retained published diagnostics, with SARIF fix decoding bound to the owner snapshot. Semantic tokens encode the proven call occurrences with a bounded one-type legend. Inlay hints project parameter types from the occurrence signature at each argument start. Compiler-native completion with visibility proof and deferred detail resolution remain open.
|
||||
|
||||
The reflection provenance representation (roadmap 12 first slice) is
|
||||
implemented as a bounded library with a registered suite: innermost-first
|
||||
|
||||
@@ -79,6 +79,18 @@ the upgraded snapshot (keeping `snapshot.prev.json`) and rewrites a legacy
|
||||
about 25-30s in a Debug build (it passed VBS at ~27s); the full CMake run then
|
||||
passed 18/18.
|
||||
|
||||
## December 5 inlay hints from occurrence signatures
|
||||
|
||||
`include/vls/features/InlayHints.hpp` finds the top-level argument starts of a
|
||||
call (bounded, nested-bracket/literal/comment aware) and projects one
|
||||
parameter-type hint per argument from the compiler signature, filtered to the
|
||||
requested range and bounded. The server advertises `inlayHintProvider` and
|
||||
serves `textDocument/inlayHint` through `EditorDiagnostics`; a real stdio
|
||||
session with the stock observer returned
|
||||
`inlayHint: 1 first: [({'character': 41, 'line': 18}, 'std::string_view:', 2)]`
|
||||
for the `fnv1a64(text)` argument. `vls_feature_tests` grew from 54 to 60 cases.
|
||||
All 18 native suites and all 18 CMake tests passed.
|
||||
|
||||
## December 5 semantic tokens from stock occurrences
|
||||
|
||||
`include/vls/features/SemanticTokens.hpp` normalizes occurrence tokens
|
||||
|
||||
Reference in new issue
Block a user