From 1215796eed79a3a97e79ca657d83a4482082cde1 Mon Sep 17 00:00:00 2001 From: Alexander Chen Date: Wed, 7 Jul 2021 14:36:35 -0400 Subject: [PATCH] made resolveExternalEntities depend of workspace trust --- src/settings/settings.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/settings/settings.ts b/src/settings/settings.ts index c73ce545..8072dead 100644 --- a/src/settings/settings.ts +++ b/src/settings/settings.ts @@ -215,6 +215,7 @@ export function getXMLSettings(javaHome: string | undefined, logfile: string, ex xml['xml']['logs']['file'] = logfile; xml['xml']['useCache'] = true; xml['xml']['java']['home'] = javaHome; + xml['xml']['validation']['resolveExternalEntities'] = workspace.getConfiguration('files').get('resolveExternalEntities', false); xml['xml']['format']['trimFinalNewlines'] = workspace.getConfiguration('files').get('trimFinalNewlines', true); xml['xml']['format']['trimTrailingWhitespace'] = workspace.getConfiguration('files').get('trimTrailingWhitespace', false); xml['xml']['format']['insertFinalNewline'] = workspace.getConfiguration('files').get('insertFinalNewline', false);