Skip to content

Unable to label ports exposed by appPort #11253

@felipecrs

Description

@felipecrs
  • VSCode Version: 1.105.0
  • Local OS Version: Windows 11 25H2
  • Remote OS Version: Ubuntu 24.04.3 LTS
  • Remote Extension/Connection Type: Dev Containers
  • Logs: N/A

Steps to Reproduce:

  1. Clone https://github.com/home-assistant/core

  2. Include portAttributes to the devcontainer.json:

    {
      "appPort": ["8123:8123"], // existing
      "portsAttributes": {
        "8123": {
          "label": "Home Assistant",
          "onAutoForward": "silent"
        }
      }
    }
  3. Reopen in the devcontainer

  4. Check ports tab:

Image

No Home Assistant label. I was expecting to see something like:

Image

Note that appPort cannot be refactored into forwardPorts because of:

  1. Proposal: support forwarding UDP ports devcontainers/spec#643
  2. https://github.com/home-assistant/core/pull/154099/files#r2417724273

Does this issue occur when you try this locally?: N/A
Does this issue occur when you try this locally and all extensions are disabled?: Yes

This is related to #11254.

Metadata

Metadata

Labels

containersIssue in vscode-remote containersfeature-requestRequest for new features or functionality

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions