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:
1 parent
da8003f6d4
commit
8ca3dcbf74
16 files changed
+366
-8
No files matched your search
@@ -121,6 +121,9 @@ class SymbolIndex {
|
||||
const std::optional<std::string> &content);
|
||||
|
||||
[[nodiscard]] Result find(const Query &) const;
|
||||
// Records whose use location is in PATH, with the same overlay shadowing,
|
||||
// deduplication and coverage reporting as find().
|
||||
[[nodiscard]] Result find_by_path(std::string_view path, std::size_t limit = 4096) const;
|
||||
[[nodiscard]] Coverage coverage() const;
|
||||
[[nodiscard]] std::shared_ptr<const Generation> current() const;
|
||||
[[nodiscard]] std::uint64_t generation() const;
|
||||
|
||||
Reference in new issue
Block a user