rogalmic/vscode-xml-complete

Schema on local disk not recognized in settings-file

Closed this issue · 1 comments

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.

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...