Class XMLCatalogCodeLensParticipant

java.lang.Object
org.eclipse.lemminx.extensions.catalog.participants.XMLCatalogCodeLensParticipant
All Implemented Interfaces:
ICodeLensParticipant

public class XMLCatalogCodeLensParticipant extends Object implements 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.catalogs settings.
  • N references — shown on each uri, system, and public entry 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 triggers textDocument/references on the catalog file so that WorkspaceIndexCatalogReferenceParticipant can resolve references by catalog identifier.