The observer's base-class references are compiler-proven name spans,
so they join the type tokens alongside each class's own name. A real
stdio session decoded Base at its declaration line as a type token.
Under D-032, completion can now merge candidates from a documented,
versioned index file produced by any external tool. The bounded core
parses and selects the innermost covering scope, the server puts its
items ahead of index-backed ones and takes isIncomplete from the
scope's complete flag, and registered feature tests cover parsing,
selection and bounds. A real stdio session returned the provided
items first with isIncomplete false inside the scope and true outside.
Candidates carry a local flag set from the index record path, and the
deterministic sort key orders local candidates before remote ones
within the same kind. Registered feature tests cover the ranking.
Each open document's text outline is published as its own context
(outline:<uri>, provenance document-outline) on content change and
removed on close, so it never replaces compiler facts. workspace/symbol
no longer requires the occurrence observer, and documentSymbol skips
the outline's index copies. The generic stdio session now resolves a
workspace symbol with no compiler-specific artifact.
A bounded scanner recognizes namespace, class/struct, enum and function
declarations at line starts from document text alone, skipping
preprocessor lines, comments and control statements. documentSymbol
merges it with observer-fed index records, so the generic path has a
real outline with no compiler-specific artifact. Registered feature
tests cover recognition, call exclusion, comments, ranges and bounds;
the generic stdio session returned main as a function symbol.
A stdio session with a plain compilation database and no occurrence
observer advertised only compiler-generic capabilities, served
selection ranges and document links, and refused hover and
workspace/symbol as unadvertised. This is the D-032 fallback contract.
D-032: no custom-built compiler is a dependency going forward.
Private-GCC experiments remain historical evidence, compiler-native
completion is not pursued through the private frontend, and
compiler-specific capabilities (occurrence observer, stock diagnostics
profile) stay optional accelerators with documented fallbacks. The
parity matrix and state note the change.
CURRENT moves to schema 3 with an explicit previous file name. Restore
accepts schemas 1-3 (migrating 2), validates the recorded name as a
plain file name and recovers from it when the current generation is
missing. Registered index tests cover the migration, recovery through
a renamed previous generation and rejection of an escaping name.
The semantic token legend gains a type entry, and the server emits it
for each class name span reported by the observer when it lies in the
open document. The canonical type itself is still not tokenized
because it has no source span. Registered tests cover the legend index,
and a real stdio session decoded the class names as type tokens beside
the function and declaration tokens.
Occurrences carry their result type uid, decoded types are retained per
editor entry, and a bounded core selects direct bases and inverse
subtypes. The server advertises typeHierarchyProvider and serves
prepareTypeHierarchy, supertypes and subtypes. Registered feature tests
cover the selection; a real stdio session prepared DerivedA and
returned Base as supertype and DerivedA/DerivedB as subtypes of Base.
For each call whose result is a class type, the observer records the
class name span and its direct bases (bounded, deduplicated by uid).
The corpus verifier validates the new types array, and the occurrence
decoder binds each reference to its captured snapshot through the
negotiated encoding, rejecting uncaptured or malformed entries. A
registered decoder case covers the new field. LSP type-hierarchy
handlers remain open.
Per the user's decision, textDocument/formatting runs clang-format as a
bounded child process with a 5s deadline and capped streams. A bounded
core builds the arguments (workspace .clang-format when present,
otherwise the LSP tab options as an explicit LLVM style) and the
whole-document edit, refusing output over 32 MiB. Registered feature
tests cover the arguments, bounds and edit shape; a real stdio session
formatted a misindented document. clang-format becomes a runtime
dependency of formatting.
Per the user's decision, the launcher accepts --reflection-snapshot and
the server parses the versioned snapshot at startup. reflection::hover_at
selects the innermost entity whose provenance covers a position and
returns its bounded virtual view; hover falls back to it after compiler
occurrence hover, converting the client position because reflection
columns are bytes. Registered reflection tests grew to 25 cases, and a
real stdio session returned the Markdown view with source links inside
the recorded range and null outside it.
A bounded core resolves quoted include directives from the document
directory and reports the spelling range; the server advertises
documentLinkProvider and serves textDocument/documentLink from
snapshots, keeping only targets that exist on disk. Angle includes are
skipped because their search roots are unknown. Registered feature
tests cover resolution, indentation, line counting, skipping and
bounds, and the exact-capability-set assertion was updated. A real
stdio session linked extra.hpp and skipped <vector> and a missing
file.
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.
The server legend gains a declaration modifier, and EditorDiagnostics
emits the definition-name token with it when the definition lies in the
same document. No type token is emitted because the canonical type has
no source span. Registered tests cover modifier encoding and the
overlap rule; a real stdio session showed the modifier on both
definition names.
The bounded inlay-hint core now matches a call's closing parenthesis
(nested calls, literals and comments aware) and places a type hint
labelled with the compiler's canonical type. EditorDiagnostics emits
it for every occurrence independently of parameter signatures.
Registered tests cover nested matching, placement, skipped cases and
bounds; a real stdio session showed both the parameter and return hints
at the fnv1a64 call.
A bounded core builds one lens per document position with its proven
reference count. EditorDiagnostics counts index records by name and
definition and serves textDocument/codeLens; workspace/executeCommand
implements vls.showReferences via the navigation binding. Registered
feature tests cover titles, arguments, deduplication and bounds. A
real stdio session showed the one-reference lens at the fnv1a64 call
and resolved it to the source location.
The observer emits an optional extent inside each proven definition
span from the body's last statement finish (the C++ frontend does not
set function_end_locus). The occurrence decoder binds it to the same
snapshot through the negotiated encoding and rejects malformed
extents; call hierarchy attributes nested calls to the enclosing
extent. A real stdio session reported both inner calls as outgoing
from outer, and the observer and occurrence corpora still pass.
callHierarchy/outgoingCalls groups calls attributed to the prepared
function's innermost enclosing definition by callee, with registered
core tests for grouping, innermost attribution, unresolved-callee
omission and bounds. Real stdio evidence shows the observer reports
only the declarator span, so body calls cannot be attributed without
guessing; the matrix records that limitation.
prepareCallHierarchy returns the callee definition as one item, and
callHierarchy/incomingCalls groups resolved call sites by the
innermost compiler-proven enclosing definition, falling back to an
explicit file-level caller. The server advertises
callHierarchyProvider. A real stdio session with the stock observer
prepared fnv1a64 (Hash.hpp) and reported one incoming call from
DocumentSnapshot.cpp.
A bounded call-hierarchy core maps resolved call sites to the
innermost compiler-proven definition containing them in the same file,
falling back to an explicitly file-level caller instead of a guessed
function. Registered vls_feature_tests cases cover grouping,
deduplication, exact-target matching and bounds. Server wiring remains.
The server advertises willRename and answers workspace/willRenameFiles
with a WorkspaceEdit. A bounded core resolves quoted includes against
the document directory and replaces only the spelling (relative stays
relative, absolute stays absolute, angle includes untouched), with
registered tests. EditorDiagnostics converts the byte edits to
negotiated positions for every open overlay; a real stdio session
returned the extra.hpp -> renamed.hpp edit.
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.
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.
A bounded core normalizes occurrence tokens (sorted, deduplicated,
overlap-free, capped) and delta-encodes them. EditorDiagnostics emits
one function token per proven call occurrence in the owner snapshot,
and the server advertises a one-type legend and serves
textDocument/semanticTokens/full. Registered tests cover
normalization, encoding, overlap and bounds; a real stdio session
decoded the fnv1a64 callee token.
Decode GCC SARIF fixes into bounded diagnostic edits through the same
physical-origin policy as locations; unprovable regions are dropped. A
bounded projection filters fixes to the requested range, deduplicates
and bounds them, and textDocument/codeAction serves them from retained
published diagnostics. Registered tests cover the SARIF binding and the
projection; a real stdio session returned the compiler's
Replace 'valu' with 'value' quickfix.
A bounded snapshot-only core (vls/features/TextStructure.hpp) builds
nested selection chains (identifier, line, enclosing blocks, document)
and foldable regions (brace blocks, comments, preprocessor pairs,
include groups) while ignoring literals. The server advertises and serves
textDocument/selectionRange with bounded positions and
textDocument/foldingRange through EditorDiagnostics; registered
vls_feature_tests cases cover both.
SymbolIndex::find_by_path exposes one document's records with the same
overlay shadowing and coverage as find. EditorDiagnostics maps them to
textDocument/documentSymbol, and a bounded same-file highlight core
(vls/features/DocumentSymbols.hpp) backs textDocument/documentHighlight
from verified occurrence facts with the ambiguous-binding rule. Both are
advertised and exercised over a real stdio session with the stock
observer. Record the LSP parity matrix.
Native VBS and CMake builds of the server and every registered suite:
protocol and document sync, VBS/compdb providers, stock GCC diagnostics
(including in-process default profile preparation), the stock occurrence
observer and hover/definition, the bounded Scheduler, C++ module graph,
scan and artifact cache with real CMI production, the context-aware
symbol index with schema-2 snapshot migration, navigation and guarded
rename, reflection provenance with splice-origin extraction, index-backed
completion and signature help, live GCC worker control with a registered
DAP suite, and the Neovim and VS Code clients.
VoidLibrary follows main. The private GCC 16.2.0 frontend is reproduced
from the versioned patches and verified stepping reflection/template code
with projected values 17/34 and 41/82.