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.
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:
Additional requirements
A url opener should be able to decline opening a link
Some openers may only support specific types of links, such as
localhostClicking 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.