redhat-developer / redhat-developer/vscode-yaml
yaml.schemas setting: breaking regression when using encoded file URLs on Windows
@shin19991207 is already working on this.
Since Jul 30, 2026.
- Dominant language
- TypeScript
- Stars
- 829
- Forks
- 260
- Avg merge
- 5h 43m
- Merged PRs (30d)
- 1
Description
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
- Windows
- Mac
- Linux
- other (please specify)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.