Skip to content

Can we allow isTrusted configuration for MarkdownString? #503

Closed
@MangelMaxime

Description

@MangelMaxime

In VSCode MarkdownString can have a property isTrusted set to true in order to:

Indicates that this markdown string is from a trusted source. Only trusted markdown supports links that execute commands, e.g. Run it.

Currently, it seems that we don't have an option to configure it. Source

Would it be possible to add a way to configure isTrusted property?

My use case would be to allow people to click on a type definition inside a tooltip and see the documentation of that types in a documentation panel. This is already something we are doing from inside that documentation panel.

Demo

2019-07-12 12 56 21

Use case

The user could click on string to see that type documentation.

Capture d’écran 2019-07-12 à 12 56 49

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedIssues identified as good community contribution opportunities

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions