XML#
Server#
For more information about the LSP server, check lsp4xml.
Installation#
This Server supports automatic install.
Install this language server with M-xlsp-install-server
RETxmlls
RET.
Automatic by lsp-mode
Debugger: Not available#
Available configurations#
lsp-xml-catalogs
#
Type: (repeat string)
Default: nil
Array of XML Catalogs
lsp-xml-completion-auto-close-tags
#
Type: boolean
Default: t
Enable/disable autoclosing of XML tags. IMPORTANT: Turn off editor.autoClosingTags for this to work
lsp-xml-file-associations
#
Type: (repeat string)
Default: nil
Allows XML schemas to be associated to file name patterns. Example: [{ "systemId":"path/to/file.xsd","pattern": "file1.xml" },{ "systemId": "http://www.w3.org/2001/XMLSchema.xsd","pattern": "*/.xsd" }]
lsp-xml-format-enabled
#
Type: boolean
Default: t
Enable/disable ability to format document
lsp-xml-format-join-cdata-lines
#
Type: boolean
Default: nil
Join lines in a CDATA tag`s content
lsp-xml-format-join-comment-lines
#
Type: boolean
Default: nil
Join comment content on format
lsp-xml-format-join-content-lines
#
Type: boolean
Default: nil
Normalize the whitespace of content inside an element. Newlines and excess whitespace are removed.
lsp-xml-format-preserve-empty-content
#
Type: boolean
Default: nil
Preserve empty content/whitespace in a tag.
lsp-xml-format-quotations
#
Type: (choice (const doubleQuotes) (const singleQuotes))
Default: doubleQuotes
Which type of quotes to use for attribute values when formatting.
lsp-xml-format-space-before-empty-close-tag
#
Type: boolean
Default: t
Insert space before end of self closing tag.
Example:
lsp-xml-format-split-attributes
#
Type: boolean
Default: nil
Split multiple attributes each onto a new line
lsp-xml-jar-download-url
#
Type: string
Default: https://repo.eclipse.org/content/repositories/lemminx-releases/org/eclipse/lemminx/org.eclipse.lemminx/0.18.0/org.eclipse.lemminx-0.18.0-uber.jar
Automatic download url for lsp-xml.
lsp-xml-jar-file
#
Type: file
Default: ~/.emacs.d/.cache/lsp/xmlls/org.eclipse.lemminx-0.18.0-uber.jar
Xml server jar command.
lsp-xml-logs-client
#
Type: boolean
Default: t
Should the server log to client output
lsp-xml-server-command
#
Type: (repeat string)
Default: (java -jar /home/runner/.emacs.d/.cache/lsp/xmlls/org.eclipse.lemminx-0.18.0-uber.jar)
Xml server command.
lsp-xml-server-vmargs
#
Type: lsp-string-vector
Default: [-noverify -Xmx64M -XX:+UseG1GC -XX:+UseStringDeduplication]
Specifies extra VM arguments used to launch the XML Language
Server. Eg. use -noverify -Xmx1G -XX:+UseG1GC
-XX:+UseStringDeduplication
to bypass class verification,
increase the heap size to 1GB and enable String deduplication
with the G1 Garbage collector
lsp-xml-server-work-dir
#
Type: string
Default: /home/runner/.lsp4xml
Set a custom folder path for cached XML Schemas. An absolute path is expected, although the ~ prefix (for the user home directory) is supported.
lsp-xml-trace-server
#
Type: (choice (const off) (const messages) (const verbose))
Default: off
Traces the communication between VS Code and the XML language server.
lsp-xml-validation-enabled
#
Type: boolean
Default: t
Enable/disable all validation.
lsp-xml-validation-no-grammar
#
Type: (choice (:tag ignore hint info warning error))
Default: hint
The message severity when a document has no associated grammar.
lsp-xml-validation-resolve-external-entities
#
Type: boolean
Default: nil
Enable/disable resolution (downloading) of external entities from the internet.
lsp-xml-validation-schema
#
Type: boolean
Default: t
Enable/disable schema based validation. Ignored if "xml.validation.enabled": false.