Skip to content

Commit 536b6ee

Browse files
authored
lsp-xml: Support xml.validation.resolveExternalEntities setting (#2263)
1 parent 70877e4 commit 536b6ee

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

clients/lsp-xml.el

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,12 @@ Newlines and excess whitespace are removed."
155155
:group 'lsp-xml
156156
:package-version '(lsp-mode . "6.1"))
157157

158+
(defcustom lsp-xml-validation-resolve-external-entities nil
159+
"Enable/disable resolution (downloading) of external entities from the internet."
160+
:type 'boolean
161+
:group 'lsp-xml
162+
:package-version '(lsp-mode . "7.1"))
163+
158164
(defcustom lsp-xml-validation-schema t
159165
"Enable/disable schema based validation. Ignored if
160166
\"xml.validation.enabled\": false."
@@ -164,6 +170,7 @@ Newlines and excess whitespace are removed."
164170

165171
(lsp-register-custom-settings '
166172
(("xml.validation.schema" lsp-xml-validation-schema t)
173+
("xml.validation.resolveExternalEntities" lsp-xml-validation-resolve-external-entities)
167174
("xml.validation.enabled" lsp-xml-validation-enabled t)
168175
("xml.validation.noGrammar" lsp-xml-validation-no-grammar)
169176
("xml.server.workDir" lsp-xml-server-work-dir)

0 commit comments

Comments
 (0)