redhat-developer / redhat-developer/vscode-yaml

yaml.schemas setting: breaking regression when using encoded file URLs on Windows

Open
#1,274 1 comment 0 reactions 1 assignee View on GitHub

@shin19991207 is already working on this.

Since Jul 30, 2026.

bug
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

  1. On Windows add a file URL with a url encoded schema location
  2. Open a yaml file that would use the schema

Environment

  • Windows
  • Mac
  • Linux
  • other (please specify)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.