Class XMLCatalogTypeDefinitionParticipant

java.lang.Object
org.eclipse.lemminx.services.extensions.AbstractTypeDefinitionParticipant
org.eclipse.lemminx.extensions.catalog.participants.XMLCatalogTypeDefinitionParticipant
All Implemented Interfaces:
ITypeDefinitionParticipant

public class XMLCatalogTypeDefinitionParticipant extends AbstractTypeDefinitionParticipant
Provides "Go to Type Definition" locations for the catalog entries that bind the XML document's namespace to its grammar.

When the user triggers type-definition on an XML element whose namespace URI is mapped by a catalog entry (<namespace> or <uri>), this participant returns a LocationLink pointing to that entry in the catalog file, in addition to the XSD type location returned by the content- model participant.

Example:

 order.xml:    <order xmlns="http://example.org/order">  ← type definition here
 catalog.xml:  <namespace name="http://example.org/order" uri="order.xsd"/>  ← navigates here too