Skip to content

Commit

Permalink
fix variable typo
Browse files Browse the repository at this point in the history
  • Loading branch information
a2975667 committed Jul 16, 2020
1 parent 313b429 commit 8e7079d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,21 +150,21 @@ 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);
}
});
languageClient.sendNotification(DidChangeConfigurationNotification.type, { settings: XMLsettings });
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);
}
Expand Down

0 comments on commit 8e7079d

Please sign in to comment.