Uses of Interface
org.eclipse.lemminx.services.extensions.codeaction.ICodeActionParticipant
-
-
Uses of ICodeActionParticipant in org.eclipse.lemminx.extensions.contentmodel.participants
Classes in org.eclipse.lemminx.extensions.contentmodel.participants that implement ICodeActionParticipant Modifier and Type Class Description classContentModelCodeActionParticipantExtension to support XML code actions based on content model (XML Schema completion, etc)Method parameters in org.eclipse.lemminx.extensions.contentmodel.participants with type arguments of type ICodeActionParticipant Modifier and Type Method Description static voidDTDErrorCode. registerCodeActionParticipants(Map<String,ICodeActionParticipant> codeActions, SharedSettings sharedSettings)static voidExternalResourceErrorCode. registerCodeActionParticipants(Map<String,ICodeActionParticipant> codeActionParticipants)static voidXMLSchemaErrorCode. registerCodeActionParticipants(Map<String,ICodeActionParticipant> codeActions, SharedSettings sharedSettings)static voidXMLSyntaxErrorCode. registerCodeActionParticipants(Map<String,ICodeActionParticipant> codeActions, SharedSettings sharedSettings) -
Uses of ICodeActionParticipant in org.eclipse.lemminx.extensions.contentmodel.participants.codeactions
Classes in org.eclipse.lemminx.extensions.contentmodel.participants.codeactions that implement ICodeActionParticipant Modifier and Type Class Description classCloseTagCodeActionCode action to fix close start tag element.classcvc_attribute_3CodeActionCode action to fix cvc-attribute-3 error.classcvc_complex_type_2_1CodeActionCode action to fix cvc-complex-type.2.1 error.classcvc_complex_type_2_3CodeActionCode action to fix cvc-complex-type.2.3 error.classcvc_complex_type_2_4_aCodeActioncvc_complex_type_2_4_aclasscvc_complex_type_2_4_bCodeActionCodeAction to insert expected child elements within an element Given this XML where the expected child elements are not present as defined in the XSD:Error: Child elements are missing from element: - servlet The following elements are expected: - description - display-name - icon - servlet-name To fix the error, the code action will suggest inserting the expected elements inside the parent tag classcvc_complex_type_3_2_2CodeActionCode action to fix cvc-complex-type.3.2.2 error.classcvc_complex_type_4CodeActionCode action to fix cvc-complex-type.4 error.classcvc_elt_1_aCodeActionCode action to find the expected element name defined in the given xsd and replace it Given this XML where 'root' is defined as the root element in the XSD-> Error: Cannot find declaration of 'test' To fix the error, the code action will suggest replacing 'test' with 'root' in both the opening and closing tag classcvc_enumeration_validCodeActionCode action to fix cvc_enumeration_valid error only for text, because for attribute cvc-attribute-3 error fix it.classcvc_type_3_1_1CodeActionCode action to fix cvc-type.3.1.1 error.classDownloadDisabledResourceCodeActionCode action to force download of an external resource.classElementDeclUnterminatedCodeActionCode action to fix ElementDeclUnterminated error.classElementUnterminatedCodeActionCode action to fix ElementUnterminated error.classEntityNotDeclaredCodeActionCode action to fix EntityNotDeclaredCodeAction error.classEqRequiredInAttributeCodeActionCode action to fix EqRequiredInAttribute error.classETagRequiredCodeActionCode action to fix ETagRequired error.classETagUnterminatedCodeActionCode action to fix ETagUnterminated error.classFixMissingSpaceCodeActionAdds a space at the end of the diagnostic rangeclassMarkupEntityMismatchCodeActionMarkupEntityMismatchCodeAction is a code action that triggers when the end tag of the root element is missing.classOpenQuoteExpectedCodeActionOpenQuoteExpectedCodeActionclassRootElementTypeMustMatchDoctypedeclCodeActionCode action for RootElementTypeMustMatchDoctypedecl This class depends on the diagnostic message (Diagnostic#message) to determine the correct root name.classs4s_elt_invalid_content_3CodeActionCode action to fix cvc-attribute-3 error.classSemicolonRequiredInReferenceCodeActionCode action to fix SemicolonRequiredInReference error.classsrc_annotationCodeActionCode action to fix invalid src-annotation elementsclasssrc_import_1_2CodeActionCode action to fix cvc-attribute-3 error.classTargetNamespace_1CodeActionCodeAction to replace an incorrect namespace in an .xml document.classTargetNamespace_2CodeActionCode action to add the missing xmlns declaration to the root element in an .xml document. -
Uses of ICodeActionParticipant in org.eclipse.lemminx.extensions.contentmodel.participants.codeactions.missingelement
Classes in org.eclipse.lemminx.extensions.contentmodel.participants.codeactions.missingelement that implement ICodeActionParticipant Modifier and Type Class Description classrequired_element_missingCodeActionCodeAction to insert expected child elements within an element Given this XML where the expected child elements are not present as defined in the relaxNG schema:Error: Child elements are missing from element: - servlet To fix the error, the code action will suggest inserting the expected elements inside the parent tag classrequired_elements_missing_expectedCodeActionCodeAction to insert expected child element given a list of choices Given this XML where the expected child elements are not present as defined in the relaxNG schema: Error: element "article" incomplete; expected element "title", "title2" or "titleOtherChoice" To fix the error, there will three code actions generated to insert each option -
Uses of ICodeActionParticipant in org.eclipse.lemminx.extensions.contentmodel.participants.codeactions.missinggrammar
Classes in org.eclipse.lemminx.extensions.contentmodel.participants.codeactions.missinggrammar that implement ICodeActionParticipant Modifier and Type Class Description classAbstractFixMissingGrammarCodeActionAbstract code action participant which manages missing referenced grammar file (DTD, XSD).classDTDNotFoundCodeActionCode Action that creates a DTD file referenced with System ID of DOCTYPE.classschema_reference_4CodeActionCode Action that creates a schema file referenced by xsi:noNamespaceSchemaLocation if it is missing -
Uses of ICodeActionParticipant in org.eclipse.lemminx.extensions.contentmodel.participants.codeactions.nogrammarconstraints
Classes in org.eclipse.lemminx.extensions.contentmodel.participants.codeactions.nogrammarconstraints that implement ICodeActionParticipant Modifier and Type Class Description classNoGrammarConstraintsCodeActionCode Action to bind a XML to a grammar (DTD, XSD) by generating the grammar. -
Uses of ICodeActionParticipant in org.eclipse.lemminx.extensions.relaxng.xml.validator
Method parameters in org.eclipse.lemminx.extensions.relaxng.xml.validator with type arguments of type ICodeActionParticipant Modifier and Type Method Description static voidRelaxNGErrorCode. registerCodeActionParticipants(Map<String,ICodeActionParticipant> codeActions, SharedSettings sharedSettings) -
Uses of ICodeActionParticipant in org.eclipse.lemminx.extensions.xsd.participants
Method parameters in org.eclipse.lemminx.extensions.xsd.participants with type arguments of type ICodeActionParticipant Modifier and Type Method Description static voidXSDErrorCode. registerCodeActionParticipants(Map<String,ICodeActionParticipant> codeActions) -
Uses of ICodeActionParticipant in org.eclipse.lemminx.services.extensions
Methods in org.eclipse.lemminx.services.extensions that return types with arguments of type ICodeActionParticipant Modifier and Type Method Description List<ICodeActionParticipant>XMLExtensionsRegistry. getCodeActionsParticipants()Methods in org.eclipse.lemminx.services.extensions with parameters of type ICodeActionParticipant Modifier and Type Method Description voidXMLExtensionsRegistry. registerCodeActionParticipant(ICodeActionParticipant codeActionsParticipant)voidXMLExtensionsRegistry. unregisterCodeActionParticipant(ICodeActionParticipant codeActionsParticipant)
-