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.
This commit is contained in:
1 parent
ec86a79a1a
commit
0bf5873069
12 files changed
+279
-5
No files matched your search
@@ -60,6 +60,8 @@ class EditorDiagnostics {
|
||||
selection_ranges(std::string_view uri, std::span<const Documents::Position>) const;
|
||||
// Foldable brace blocks, comments, regions and include groups.
|
||||
[[nodiscard]] Void::LanguageServer::Protocol::Json folding_ranges(std::string_view uri) const;
|
||||
// Reference-count lenses for the records the index holds for one document.
|
||||
[[nodiscard]] Void::LanguageServer::Protocol::Json code_lenses(std::string_view uri) const;
|
||||
// Quick fixes suggested by the compiler for diagnostics overlapping the
|
||||
// requested range. Only fixes proven in the owner snapshot are offered.
|
||||
[[nodiscard]] Void::LanguageServer::Protocol::Json code_actions(std::string_view uri,
|
||||
|
||||
Reference in new issue
Block a user