Class XMLFormatterDocumentOld

java.lang.Object
org.eclipse.lemminx.services.format.XMLFormatterDocumentOld

public class XMLFormatterDocumentOld extends Object
Default XML formatter which generates one text edit by rewriting the DOM node which must be formatted.
Author:
Angelo ZERR
  • Constructor Details

  • Method Details

    • format

      public List<? extends org.eclipse.lsp4j.TextEdit> format() throws BadLocationException
      Returns a List containing a single TextEdit, containing the newly formatted changes of this.textDocument
      Returns:
      List containing a single TextEdit
      Throws:
      BadLocationException