Skip to content

[UriError]: Scheme contains illegal characters #249353

@vdevmt

Description

@vdevmt
already existing closed issue #93220

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version:
    Version: 1.100.2 (system setup)
    Commit: 848b80a
    Date: 2025-05-14T21:47:40.416Z
    Electron: 34.5.1
    ElectronBuildId: 11369351
    Chromium: 132.0.6834.210
    Node.js: 20.19.0
    V8: 13.2.152.41-electron.0
    OS: Windows_NT x64 10.0.26100

  • OS Version:
    Windows 11 Pro

Steps to Reproduce:

const url = 'https://www.google.com/'; (or https://dev.azure.com/)
const encodedUrl = encodeURI(url);
const uri = vscode.Uri.parse(encodedUrl);
vscode.env.openExternal(uri)

Result: [UriError]: Scheme contains illegal characters

Only the value 'https://github.com/' works fine.
How is this possible?

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions