Describe the bug
In our VS Code extension we are programmatically updating the "yaml.schema" setting when your extension is installed to point to a local schema that ships with our extension to support offline usage. We use the standard VS Code API to serialize the schema URL with
resultUrl = vscode.Uri.file(absoluteSchemaPath).toString();
This returns in Windows a file URL that encodes the colon such as this: file:///c%3A/Users/user1/.vscode/extensions/ibm.zopeneditor-6.6.1/resources/zapp-schema-1.10.2.json
This used to work for years, but a recent update to the extension must have broken this. It now requires to use : instead of %3A. However, both are valid URL.
Expected Behavior
Support both : and %3A
Current Behavior
The schema is not found
Steps to Reproduce
- On Windows add a file URL with a url encoded schema location
- Open a yaml file that would use the schema
Environment
Describe the bug
In our VS Code extension we are programmatically updating the "yaml.schema" setting when your extension is installed to point to a local schema that ships with our extension to support offline usage. We use the standard VS Code API to serialize the schema URL with
This returns in Windows a file URL that encodes the colon such as this:
file:///c%3A/Users/user1/.vscode/extensions/ibm.zopeneditor-6.6.1/resources/zapp-schema-1.10.2.jsonThis used to work for years, but a recent update to the extension must have broken this. It now requires to use
:instead of%3A. However, both are valid URL.Expected Behavior
Support both
:and%3ACurrent Behavior
The schema is not found
Steps to Reproduce
Environment