Skip to content

Provide a built-in way to route arbitrary external links to the integrated browser #311064

@frznn

Description

@frznn

Problem

VS Code has an integrated browser, but there does not appear to be a documented built-in way for arbitrary external http/https links to open there when they come through normal external-link flows.

As far as I can tell today:

  • workbench.browser.openLocalhostLinks only covers localhost links
  • workbench.externalBrowser is documented for choosing an external browser, not the integrated browser
  • extensions using vscode.env.openExternal(...) still send normal external links to the system browser unless they implement extra opener logic themselves

Feature request

Please add a documented built-in way for users and extensions to route arbitrary external http/https links to the integrated browser.

Possible shapes:

  • allow workbench.externalBrowser to target the integrated browser
  • add a separate setting for opening external links in the integrated browser
  • add a first-class API/option so extensions can request "open this external URL in the integrated browser"

Why this would help

Extensions such as OpenAI Codex surface documentation and reference links inside the editor UI. Being able to keep those links inside VS Code would reduce context switching and make the integrated browser useful beyond localhost and preview flows.

Related issues / why I think this is broader

I found #300003, which asks for markdown links to open in the integrated browser. That request is close, but narrower than what I'm asking for here.

This issue is about a broader built-in capability for arbitrary external links, including extension-driven flows such as openExternal(...), not only markdown editor behavior.

Related background:

Environment

  • VS Code: 1.116.0
  • Platform: Linux x64

Metadata

Metadata

Labels

browser-integrationWeb browsing features integrated into VS Code (e.g. integrated browser)feature-requestRequest for new features or functionality

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions