Package org.eclipse.lemminx.extensions.contentmodel.participants.codeactions
package org.eclipse.lemminx.extensions.contentmodel.participants.codeactions
-
ClassDescriptionCode action to fix MSG_ATT_DEFAULT_INVALID error by replacing the invalid default value with a valid enumeration value.Code action to fix AttributeNotUnique error.Code action to fix AttTypeRequiredInAttDef error by replacing the invalid attribute type with a valid DTD attribute type.Code action to fix close start tag element.Code action for PublicIDUnterminated and SystemIDUnterminated.Code action to fix ContentIllegalInProlog error.Code action to close a missing parenthesis in DTD content model declarations.Code action to fix MSG_OPEN_PAREN_OR_ELEMENT_TYPE_REQUIRED_IN_CHILDREN and MSG_CONTENTSPEC_REQUIRED_IN_ELEMENTDECL errors by inserting or replacing a content specification.Code action to fix cvc-attribute-3 error.Code action to fix cvc-complex-type.2.1 error.Code action to fix cvc-complex-type.2.3 error.cvc_complex_type_2_4_aCodeAction 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 Code action to fix cvc-complex-type.3.1 error (fixed value mismatch).Code action to fix cvc-complex-type.3.2.2 error.Code action to fix cvc-complex-type.4 error.Code 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 Code action to fix cvc_enumeration_valid error only for text, because for attribute cvc-attribute-3 error fix it.Code action to fix cvc-type.3.1.1 error.Code action to fix DashDashInComment error.Code action to fix DoctypeNotAllowed error.Code action to force download of an external resource.Code action to fix unterminated DTD declaration errors by inserting a closing>.Code action to fix ElementUnterminated error.Code action to fix EntityNotDeclaredCodeAction error.Code action for unterminated enumeration in DTD ATTLIST declarations.Code action to fix EqRequiredInAttribute error.Code action to fix ETagRequired error.Code action to fix ETagUnterminated error.Code action to insert external ID literal(s) after SYSTEM or PUBLIC keyword.Code action to fix ExternalIDorPublicIDRequired error by inserting PUBLIC or SYSTEM keyword.Code action to fix missing space errors in DTD declarations by inserting a space after the highlighted token.Code action to fix IDDefaultTypeInvalid error by replacing the invalid default value with#IMPLIEDor#REQUIRED.Code action to fix RelaxNG invalid_attribute_name and no_attributes_allowed errors by removing the undeclared attribute.Code action to fix RelaxNG invalid_attribute_value error by replacing the invalid attribute value with a valid enumeration value.Code action to fix LessthanInAttValue error.MarkupEntityMismatchCodeAction is a code action that triggers when the end tag of the root element is missing.Code action to fix MixedContentUnterminated error by inserting the missing)*or*before>.Code action to fix DTD MSG_ATTRIBUTE_NOT_DECLARED error by removing the undeclared attribute.Code action to fix DTD MSG_ATTRIBUTE_VALUE_NOT_IN_LIST and MSG_FIXED_ATTVALUE_INVALID errors by replacing the invalid attribute value with a valid enumeration value.Code action to fix DTD MSG_CONTENT_INCOMPLETE error by inserting expected child elements.Code action for MSG_CONTENT_INVALID.Code action to fix DTD MSG_ELEMENT_NOT_DECLARED and MSG_CONTENT_INVALID errors by replacing the invalid element with a similar valid element name.Code action to fix DTD MSG_FIXED_ATTVALUE_INVALID error by replacing the invalid attribute value with the fixed value.Code action for MSG_MARKUP_NOT_RECOGNIZED_IN_DTD.Code action to fix DTD MSG_REQUIRED_ATTRIBUTE_NOT_SPECIFIED error by inserting missing required attributes.Code action to fix RelaxNG no_attributes_allowed error by removing the undeclared attribute.Code action for missing SYSTEM/PUBLIC keyword after notation name.Code action for MSG_NOTATION_NOT_DECLARED_FOR_UNPARSED_ENTITYDECL.OpenQuoteExpectedCodeActionCode action to fix RelaxNG out_of_context_element error by replacing the invalid element with a similar valid element name.Code action to fix QuoteRequiredInPublicID, QuoteRequiredInSystemID, and OpenQuoteMissingInDecl errors by wrapping the unquoted value in double quotes.Base code action to remove an undeclared attribute and position the cursor at the removal location via SnippetTextEdit.Code action to fix src-element.1 and src-attribute.1 errors where both 'default' and 'fixed' attributes are present.Code action to remove a duplicate DTD declaration line.Base code action to replace an invalid attribute value with a similar or valid enumeration value from the grammar.Base code action to replace an invalid element name with a similar or valid element name from the grammar.Code action to fix required_attribute_missing, required_attributes_missing, and required_attributes_missing_expected errors.Code action for RootElementTypeMustMatchDoctypedecl This class depends on the diagnostic message (Diagnostic#message) to determine the correct root name.Code action to fix cvc-attribute-3 error.Code action to fix SemicolonRequiredInReference error.Code action to fix invalid src-annotation elementsCode action to fix cvc-attribute-3 error.CodeAction to replace an incorrect namespace in an .xml document.Code action to add the missing xmlns declaration to the root element in an .xml document.Code action to fix RelaxNG unknown_element and out_of_context_element errors by replacing the invalid element with a similar valid element name.Code action to fix XMLDeclUnterminated error.