Skip to content

Use hosts from portsAttributes to detect when a port should be forwarded #6897

@alexr00

Description

@alexr00

This is an outcome of #6895.

There are several places that VS Code has the opportunity to notice that a port should be forwarded:

  • terminal output (when auto forwarding is on)
  • debug console (when auto forwarding is on)
  • terminal link handling
  • the extension API openExternal

In all of these places, we only forward the port if the host is localhost, 127.0.0.1, or 0.0.0.0.

This could be improved by looking for hosts in portsAttributes and then including those hosts when deciding whether to forward.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions