You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VS Code version: Code 1.97.2 (Universal) (e54c774, 2025-02-12T23:20:35.343Z)
OS version: Darwin arm64 24.3.0
Modes:
Remote OS version: Linux x64 5.14.0-503.21.1.el9_5.x86_64
Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.
@jrieken I don't see this specific issue (mismatch between copy / open) represented in the other URI related tickets. Can you provide any more details as to why this was marked as a duplicate?
Type: Bug
When using the
vscode.env.openExternal
api in an extension, URLs are inconsistently encoded between the "Open" and "Copy" options.It looks like the copy feature is passing
skipEncoding = true
toUri.toString()
.vscode/src/vs/workbench/contrib/url/browser/trustedDomainsValidator.ts
Line 97 in 9e4fa92
Presumably the code that opens the link may not be doing the same?
Steps to Reproduce
A dialog opens asking "Do you want Code to open the external website?"
Expected Results
Clicking the "Open" button should produce the same URL as clicking "Copy"
Actual Results
Clicking the "Open" button seems to have different URI encoding than the link provided by "Copy"
VS Code version: Code 1.97.2 (Universal) (e54c774, 2025-02-12T23:20:35.343Z)
OS version: Darwin arm64 24.3.0
Modes:
Remote OS version: Linux x64 5.14.0-503.21.1.el9_5.x86_64
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Extensions (42)
(1 theme extensions excluded)
The text was updated successfully, but these errors were encountered: