diff --git a/src/extension.ts b/src/extension.ts index ddcb29ae..15afc755 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -150,10 +150,10 @@ export function activate(context: ExtensionContext) { const api = { //setXMLCatalog - setXMLCatalog: function (SFSettings) { + setXMLCatalog: function (externalSettings) { - SFSettings['xml']['catalogs'].forEach(element => { - if (!XMLsettings['xml']['catalogs'].includes(SFSettings['xml']['catalogs'])) { + externalSettings['xml']['catalogs'].forEach(element => { + if (!XMLsettings['xml']['catalogs'].includes(externalSettings['xml']['catalogs'])) { XMLsettings['xml']['catalogs'].push(element); } }); @@ -161,10 +161,10 @@ export function activate(context: ExtensionContext) { onConfigurationChange(); }, //set XMLFileAssoication - setXMLFileAssociation: function (SFSettings) { - SFSettings['xml']['fileAssociations'].forEach(element => { + setXMLFileAssociation: function (externalSettings) { + externalSettings['xml']['fileAssociations'].forEach(element => { if (!XMLsettings['xml']['fileAssociations'].some((element: { systemId: string; }) => { - return element.systemId === SFSettings['xml']['fileAssociations']['systemId']; + return element.systemId === externalSettings['xml']['fileAssociations']['systemId']; })) { XMLsettings['xml']['fileAssociations'].push(element); }