You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like getXMLSettings doesn't use external XML file associations, causing that part of the Typescript API to be broken.
Currently, the code is:
//applying externalXmlSettings to the xmlSettingsexternalXmlSettings.xmlCatalogs.forEach(catalog=>{if(!xml['xml']['catalogs'].includes(catalog)){xml['xml']['catalogs'].push(catalog);}})
when it probably should be something like:
//applying externalXmlSettings to the xmlSettingsexternalXmlSettings.xmlCatalogs.forEach(catalog=>{if(!xml['xml']['catalogs'].includes(catalog)){xml['xml']['catalogs'].push(catalog);}})externalXmlSettings.xmlFileAssociations.forEach(element=>{if(!xml['xml']['fileAssociations'].some(fileAssociation=>fileAssociation.systemId===element.systemId)){xml['xml']['fileAssociations'].push(element);}});
This was the only way I was able to get the addXMLFileAssociations function of the API to work, but please tell me if I'm just missing something. I have practically no experience with typescript or vscode extensions.
The text was updated successfully, but these errors were encountered:
It looks like getXMLSettings doesn't use external XML file associations, causing that part of the Typescript API to be broken.
Currently, the code is:
when it probably should be something like:
This was the only way I was able to get the addXMLFileAssociations function of the API to work, but please tell me if I'm just missing something. I have practically no experience with typescript or vscode extensions.
The text was updated successfully, but these errors were encountered: