Skip to content

Commit

Permalink
made resolveExternalEntities depend of workspace trust
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Chen committed Jul 7, 2021
1 parent 4912bfa commit 1215796
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/settings/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1215796

Please sign in to comment.