Interface IReferenceParticipant
- All Known Implementing Classes:
AbstractReferenceParticipant,DTDReferenceParticipant,RNGReferenceParticipant,WorkspaceIndexCatalogReferenceParticipant,WorkspaceIndexReferenceParticipant,XMLReferencesReferenceParticipant,XSDReferenceParticipant
public interface IReferenceParticipant
Reference participant API.
-
Method Summary
Modifier and TypeMethodDescriptionvoidfindReference(DOMDocument document, org.eclipse.lsp4j.Position position, org.eclipse.lsp4j.ReferenceContext context, List<org.eclipse.lsp4j.Location> locations, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) default CompletableFuture<List<org.eclipse.lsp4j.Location>> findReferenceByUri(String uri, org.eclipse.lsp4j.Position position, org.eclipse.lsp4j.ReferenceContext context, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Find references for a document that is not currently open/managed, identified only by its URI.
-
Method Details
-
findReference
void findReference(DOMDocument document, org.eclipse.lsp4j.Position position, org.eclipse.lsp4j.ReferenceContext context, List<org.eclipse.lsp4j.Location> locations, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) -
findReferenceByUri
default CompletableFuture<List<org.eclipse.lsp4j.Location>> findReferenceByUri(String uri, org.eclipse.lsp4j.Position position, org.eclipse.lsp4j.ReferenceContext context, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Find references for a document that is not currently open/managed, identified only by its URI. The returned future may resolve asynchronously (e.g. after a workspace index scan completes). Participants that do not depend on the DOM should override this method; the default returns an empty list immediately.
-