Skip to content

Let extensions hook into url opening #109277

@mjbvz

Description

@mjbvz

Overview

Let extensions hook into url opening. Motivating use case: I click on a link in the integrated terminal and it opens in my browser preview extension

Potential places to handle links:

  • Links in the terminal
  • Links in documents
  • Links from the remote port forwarding views
  • Debugger launch?
  • Open external?

Additional requirements

  • A url opener should be able to decline opening a link

    Some openers may only support specific types of links, such as localhost

  • Clicking a link should activate relevant extensions

    We'd need a new activation event so that extensions can make sure they handle link opening

  • Let users fallback to VS Code's default behavior

    This typically is to open using the default browser

  • Handle multiple url openers being registered at the same time

    Users should be able to select which opener to use in this case. They should potentially be able to specify a default opener.

Metadata

Metadata

Assignees

Labels

apiapi-proposalfeature-requestRequest for new features or functionalityunder-discussionIssue is under discussion for relevance, priority, approach

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions