microsoft / microsoft/vscode-livepreview

When used with DevContainers the Forwarded Address should be used

Open
#817 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
596
Forks
119
Avg merge
1d 4m
Merged PRs (30d)
5

Description

Instead of the 127.0.0.1:3000 URL, when we are using a DevContainer with Docker, the Forwareded Address should be used (the one automatically mapped and shown in the PORTS tab) to open the preview (as the Workbench Browser runs in the host environment, not inside the container).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the preview flow in a Docker-based DevContainer, comparing the hard-coded 127.0.0.1:3000 URL with the automatically forwarded address shown in the PORTS tab. Done means the Workbench Browser, running on the host, opens the preview through the forwarded address when the workspace uses a DevContainer.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, typescript, vscode
Domain
devops, devtools, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.