When the cursor is over a symbol, highlight all other places where this particular symbol is used or where it is defined.
This requires to understand the scope of the symbol, but that information should already be fully there (the rename functionality will already do that).
This need to receive verible::lsp::DocumentHighlightParams and return a std::vector<verible::lsp::DocumentHighlight> which are already defined in the lsp-protocol.yaml.
The LSP will then advertise that it implements a documentHighlightProvider in its capabilities.
When the cursor is over a symbol, highlight all other places where this particular symbol is used or where it is defined.
This requires to understand the scope of the symbol, but that information should already be fully there (the rename functionality will already do that).
Spec: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_documentHighlight
This need to receive
verible::lsp::DocumentHighlightParams
and return astd::vector<verible::lsp::DocumentHighlight>
which are already defined in thelsp-protocol.yaml
. The LSP will then advertise that it implements adocumentHighlightProvider
in its capabilities.