Open jimiatworking opened 6 years ago
Duplicate of https://github.com/ui5experts/ui5-schemas/issues/1
BR Chris
This could actually being solved using this vscode extension: https://marketplace.visualstudio.com/items?itemName=IBM.XMLLanguageSupport#overview
I'll look into supporting this natively. Contributions welcome :) Working example repo would be helpful, too.
BR Chris
Here is a snippet for a .vscode/settings.json
you could use for now:
{
"xmlLang.javaHome": "C:\\Program Files\\Java\\jdk1.8.0_152",
"xmlLang.xmlAssociations": [
{
"fileNamePattern": "**/*.+(view|fragment).xml",
"systemId": "C:\\[USER_HOME]\\AppData\\Roaming\\UI5Experts\\ui5-schemas\\sapui5\\[VERSION]\\sap.ui.core.xsd"
},
{
"fileNamePattern": "**/*.+(view|fragment).xml",
"systemId": "C:\\[USER_HOME]\\AppData\\Roaming\\UI5Experts\\ui5-schemas\\sapui5\\[VERSION]\\sap.ui.layout.xsd"
},
{
"fileNamePattern": "**/*.+(view|fragment).xml",
"systemId": "C:\\[USER_HOME]\\AppData\\Roaming\\UI5Experts\\ui5-schemas\\sapui5\\[VERSION]\\sap.m.xsd"
}
]
}
Hi,
Were you able to get this running in VSCode?
Using this configuration I'm getting following error: ct-props-correct.4: Error for type '_ViewType'. Duplicate attribute uses with the same name and target namespace are specified. Name of duplicate attribute use is 'controllerName'.
My configuration:
"xmlLang.xmlAssociations": [{
"fileNamePattern": "**/*.+(view|fragment).xml",
"systemId": "xsd/sap.ui.core.xsd",
}]
@kozubikmichal You could get rid of that by omiting the enhancement until #14 is fixed:
npx ui5-schemas --no-upgrade
@kozubikmichal #14 was just fixed with 0.4.2
Hi team, do you plan to use it on VS code?