Skip to content

Follow Link tooltip for urls in markdown files encode query string unnecessarily #108819

Closed

Description

@jcmoore

Issue Type: Bug

I cannot reproduce this issue with online monarch-editor (https://microsoft.github.io/monaco-editor/index.html) if that helps.

VS Code version: Code 1.50.0 (93c2f0f, 2020-10-07T06:10:52.432Z)
OS version: Windows_NT x64 10.0.19042

System Info
Item Value
CPUs Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz (8 x 1498)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
protected_video_decode: enabled
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 31.60GB (19.88GB free)
Process Argv --crash-reporter-id 482ad8b0-81a6-4635-87db-d66b654487d1
Screen Reader no
VM 0%
Extensions (7)
Extension Author (truncated) Version
gitlens eam 10.2.2
prettier-vscode esb 5.7.1
vscode-docker ms- 1.6.0
remote-containers ms- 0.145.0
vscode-typescript-tslint-plugin ms- 1.2.3
debugger-for-chrome msj 4.12.11
debugger-for-edge msj 1.0.15

Activity

  1. added
    help wanted
    markdown-ext
    on Oct 16, 2020
  2. added this to the Backlog milestone on Oct 16, 2020
  3. added
    bug
    on Oct 16, 2020
  4. jeanp413 commented on Oct 20, 2020

    @jeanp413
    Contributor

    I think this is a duplicate of #106097

  5. peter-fb commented on Nov 18, 2020

    @peter-fb

    YouTube links in Markdown don't longer work because of this bug. YouTube will redirect you to their homepage because it can't find the video.

  6. chenjigeng commented on Dec 16, 2020

    @chenjigeng
    Contributor

    The reason for this problem is that if you pass in a URI link, it'll call the toString function to display it .And the toString function of the URI will by default encode.
    https://github.com/microsoft/vscode/blob/master/src/vs/base/common/uri.ts#L372

    image
    image
    So is there a need for encode? If not, we can solve this problem by toString(true). Matt Bierner (@mjbvz)
    image

  7. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Dec 18, 2020
  8. locked and limited conversation to collaborators on Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bughelp wantedinsiders-releasedmarkdown-extverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions