Skip to content

Link preview / protection in workbench #78125

@octref

Description

@octref

With Markdown support in HTML/CSS extensions, users would see links going to external websites such as https://developer.mozilla.org/en-US/ and https://www.w3.org/. When displaying these links, we need to protect users as we don't control the linked websites.

Previous proposal. After you click link:

image

Notification asks you to whitelist domains:

image

After that, a setting would be written to css.whiteListDomains. Next time you click open that link, it opens in browser directly.

We had some concerns this complicates a simple link opening. Here's my alternative proposal:

link

This applies to JS/TS as well:

image

For command links (GitLens), this would also give more context as to what command would be run. Maybe we can truncate the command to only show command but not its args.

image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions