rogalmic / vscode-xml-complete

XML editing helper (using XSD schemaLocation)
MIT License
28 stars 14 forks source link

Schema on local disk not recognized in settings-file #6

Closed mrsimpson closed 5 years ago

mrsimpson commented 5 years ago

I added a section to my settings.json in which I wanted to map locally available schemas (on my Mac):

"xmlComplete.schemaMapping": [
        {
        "xmlns": "sap.ui.core",
        "xsdUri": "file:///Users/.../Library/Application%20Support/UI5Experts/ui5-schemas/openui5/1.65.1/sap.ui.core.xsd",
        "strict": true // shows errors instead of tips
        }
    ]

However, IntelliSense does not pick it up. Once I added the same URI via schemaLocation to the xml file explicitly, everything works as expected.

rogalmic commented 5 years ago

Works with:

    "xmlComplete.schemaMapping": [
        {
        "xmlns": "sap.ui.core",
        "xsdUri": "file:///C:/Users/rogalmic/Documents/src/ext/vscode-xml-complete/test/Custom1/sap.ui.core.xsd",
        "strict": true // shows errors instead of tips
        }
    ]

Could be related to previous fixes though...