mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-24 08:03:19 +00:00
feat(remote): forward ports of a WSL project (#5140)
The Ports tool window existed only for SSH hosts and dev containers; a WSL project refused to forward. A WSL distribution shares this machine's loopback (as `forward_web_url` already assumes), so a port it listens on is reachable here on the same port without a tunnel. The route decision is now a pure `forward_route(target, host)` (SSH channel tunnel, container exec tunnel, or WSL's shared loopback; another host stays reachable from a dev container only), and `Forward::Wsl` reports the port unchanged and owns no resource. The Ports tool window registers for WSL sessions, remembered ports are scoped per distribution and folder (`wsl:<distro>:<root>`), the refusal and its string are gone, and the remote docs describe it. Co-authored-by: akbar1214 <43771058+akbar1214@users.noreply.github.com>
This commit is contained in:
@@ -134,6 +134,10 @@ needed. The status bar then shows **WSL: `<distribution>`**.
|
||||
Opening a folder under `\\wsl.localhost\<distribution>\` also opens it through the distribution.
|
||||
**Browse** is not available for WSL.
|
||||
|
||||
The **Ports** tool window is available in a WSL window too. Because the distribution shares this machine's
|
||||
`localhost`, a forwarded port is reachable here on the same port; the window lists, opens and remembers ports as it
|
||||
does for SSH.
|
||||
|
||||
## Other uses of SSH configurations
|
||||
|
||||
- **Run targets** (**Settings › Build, Execution, Deployment › Run Targets**) run a configuration on an SSH host. See
|
||||
|
||||
Reference in New Issue
Block a user