From 8e7079dab61e22eb8ed79216cccc002527145515 Mon Sep 17 00:00:00 2001 From: Ti-Chung Cheng Date: Thu, 16 Jul 2020 14:04:21 -0500 Subject: [PATCH] fix variable typo --- src/extension.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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); }