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.
This commit is contained in:
faumaray committed 2026-12-05 14:21:26 +03:00
1 parent da8003f6d4
commit 8ca3dcbf74
16 files changed
+366 -8

No files matched your search

@@ -37,6 +37,11 @@ class EditorDiagnostics {
// without details rather than details for a different entity.
[[nodiscard]] Void::LanguageServer::Protocol::Json
completion_resolve(const Void::LanguageServer::Protocol::Json &item) const;
// Outline of the records the index holds for one document path.
[[nodiscard]] Void::LanguageServer::Protocol::Json document_symbols(std::string_view uri) const;
// Same-binding uses within the document, or an empty list.
[[nodiscard]] Void::LanguageServer::Protocol::Json
document_highlights(std::string_view uri, Documents::Position position) const;
struct NavigationReply {
Void::LanguageServer::Protocol::Json result;