Persist record signatures and list observed overloads

SymbolRecord carries the optional compiler signature and the snapshot
schema moves to 3; restore accepts schemas 1-3, verifies the digest for
3 and persists the upgrade. Registered index tests cover signature
persistence, a schema-2 migration keeping records and oversized
rejection. Signature help merges every observed signature for the
name (document occurrences and index) with the compiler-selected one
first; a real stdio session with two called overloads returned both
labels. This is a candidate list, not overload resolution.
This commit is contained in:
faumaray committed 2026-12-05 18:45:37 +03:00
1 parent 816c38da1e
commit a5b9f34c9e
7 files changed
+113 -13

No files matched your search

+1 -1
View File
@@ -33,7 +33,7 @@ missing part. Updated December 5, 2026 after semantic tokens and inlay hints.
| Capability | Notes |
| --- | --- |
| Compiler-native completion with visibility proof | index-backed completion is explicitly incomplete |
| Overload-set signature help | only the selected occurrence's signature is available |
| 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 |
+2 -1
View File
@@ -94,7 +94,8 @@ library with a registered suite: explicit analysis contexts, unsaved overlays
that shadow committed records and reconcile on save/close, dependency and
source invalidation that marks coverage incomplete without discarding last-good
records, immutable generations with reader retention, versioned persistence
(schema 2 with a payload digest, migrating schema-1 snapshots on restore)
(schema 3 with a payload digest and optional record signatures, migrating older
snapshots on restore)
with corrupt/incompatible/oversized rejection and quarantine, and bounded queries reporting
coverage and truncation. It is wired into navigation: `EditorDiagnostics`
ingests occurrence facts after each analysis and the server answers
+21
View File
@@ -79,6 +79,27 @@ 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 index schema 3 and overload-set signature help
`SymbolRecord` now carries the optional compiler signature and the snapshot
schema is 3. Restore accepts schemas 1-3, verifies the digest for schema 3,
reports older schemas as `migrated` and persists the upgrade. Registered
`vls_index_tests` cases cover signature persistence, a schema-2 migration that
keeps records, and rejection of an oversized signature (28 cases).
`EditorDiagnostics::signature_help` now merges every observed signature for
the same name - from the open document's occurrences and from the index - with
the compiler-selected one first. The index does not prove visibility, so this is
a candidate list, not overload resolution.
Real stdio session with `int pick(int)` and `double pick(double)` both called:
```
at 'pick(': activeParameter=0 (expected 0) signatures=2
label: int pick(int)
label: double pick(double)
```
All 18 native suites and all 18 CMake tests passed.
## December 5 declaration tokens in semantic tokens
The semantic-token slice now also emits the definition-name token when the