microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.44k stars 29.35k forks source link

Testing #203095: selection with text not turned into link when setting is `smartWithSelection` #203168

Closed aiday-mar closed 9 months ago

aiday-mar commented 9 months ago

Testing #203095

    Registry: A service storing and distributing container images and related artifacts, with features like authentication, 
    geo-replication, and more.

    Repository: A collection of container images or artifacts in a registry, identified by the same name but different tags.

    Artifact: An item within a registry associated with tags and layers, identified by a manifest.

    Manifest: A unique identifier generated when an artifact is pushed to the registry, specifying the artifact's 

https://github.com/microsoft/vscode/assets/61460952/3c4c811c-ef02-4ccf-8e74-e589cbee25de

mjbvz commented 9 months ago

@aiday-mar Are the leading spaces part of the actual text in that file? If so, the text will be rendered as a code block instead of markdown:

Image

We disable markdown link pasting inside of code blocks so I think this is actually the expected behavior. You can then use the paste selector to switch back to a markdown link if you really want

aiday-mar commented 9 months ago

Hey @mjbvz, that makes sense and explains what I was seeing. Thanks for the explanation!