You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases, we now show a modal dialog when the preferred local port is unavailable for port forwarding.
Connect to your remote and make sure that automatic port forwarding is enabled and is detecting ports via process (remote.autoForwardPortsSource).
The new requireLocalPort property of the setting remote.portsAttributes will cause a modal dialog to show when the preferred local port can't be used for port forwarding.
The preferred local port is always the same port number as the remote port.
You can make the preferred local port unavailable by running a local process on that port (ex. npx http-server -p 5000) or by forwarding a port in VS Code and using the "Change Local Address Port" action in the ports view to use the local port you want.
Try forwarding ports via auto port forwarding and by manually forwarding a port when the preferred local port is available, and verify that there is no modal dialog.
Try forwarding ports via auto port forwarding and by manually forwarding a port when the preferred local port is not available and verify that there is a modal dialog when you have requireLocalPort set for that port.
Regardless of the value of requireLocalPort, verify that a modal dialog is shown when you use the "Change Local Address Port" action from the Ports view and input a port that is already in use.
Activity