Class XMLCatalogCodeLensParticipant
java.lang.Object
org.eclipse.lemminx.extensions.catalog.participants.XMLCatalogCodeLensParticipant
- All Implemented Interfaces:
ICodeLensParticipant
Code lens participant for XML catalog files. Provides two kinds of lenses:
- Register/Unregister Catalog — shown on the root element, allows the
user to add or remove the catalog from
xml.catalogssettings. - N references — shown on each
uri,system, andpublicentry when the workspace index is available. Counts XML instance files that reference the entry via its catalog identifier (namespace URI, system ID, or public ID). Clicking the lens triggerstextDocument/referenceson the catalog file so thatWorkspaceIndexCatalogReferenceParticipantcan resolve references by catalog identifier.
-
Constructor Summary
ConstructorsConstructorDescriptionXMLCatalogCodeLensParticipant(ContentModelManager contentModelManager, XMLExtensionsRegistry registry) -
Method Summary
Modifier and TypeMethodDescriptionvoiddoCodeLens(ICodeLensRequest request, List<org.eclipse.lsp4j.CodeLens> lenses, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
-
Constructor Details
-
XMLCatalogCodeLensParticipant
public XMLCatalogCodeLensParticipant(ContentModelManager contentModelManager, XMLExtensionsRegistry registry)
-
-
Method Details
-
doCodeLens
public void doCodeLens(ICodeLensRequest request, List<org.eclipse.lsp4j.CodeLens> lenses, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) - Specified by:
doCodeLensin interfaceICodeLensParticipant
-