Commit Graph
13 Commits
Author SHA1 Message Date
faumaray 2cced8363d Add return-type inlay hints after calls
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.
2026-12-05 18:08:04 +03:00
faumaray 0bf5873069 Serve reference code lenses and the showReferences command
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.
2026-12-05 17:50:38 +03:00
faumaray ec86a79a1a Report full function extents from the stock observer
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.
2026-12-05 17:28:59 +03:00
faumaray a098e45dc9 Serve outgoing call hierarchy
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.
2026-12-05 17:03:48 +03:00
faumaray cec4e7d717 Serve call hierarchy from stock call facts
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.
2026-12-05 16:48:05 +03:00
faumaray 555ccecd65 Group incoming calls by the enclosing definition
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.
2026-12-05 16:30:33 +03:00
faumaray b0b48d961c Update includes when files are renamed
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.
2026-12-05 16:19:52 +03:00
faumaray 158125ace5 Handle workspace file-operation notifications
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.
2026-12-05 16:03:06 +03:00
faumaray 130cb57a7f 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.
2026-12-05 15:40:19 +03:00
faumaray 12a71ff692 Serve semantic tokens from stock occurrences
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.
2026-12-05 15:19:42 +03:00
faumaray 946b1a005e Offer compiler quick fixes as code actions
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.
2026-12-05 15:03:21 +03:00
faumaray 624c24d028 Serve selection and folding ranges over LSP
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.
2026-12-05 14:41:03 +03:00
faumaray 8ca3dcbf74 Serve document symbols and highlights over LSP
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.
2026-12-05 14:21:26 +03:00