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

+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