Steps to Reproduce:
If I set the "remote.SSH.defaultForwardedPorts" option and configure some ports, nameand remotePortoption works well, but localPort seems that not work.
This is my config:
"remote.SSH.defaultForwardedPorts": [
{
"localPort": 8080,
"name": "example",
"remotePort": 8080
}
],

That port is probably in use, please check.
No, the port is not in use.
I also try after a reboot.

If I create a tunnel manually with SSH, this works correctly.
I'm having the same problem. If I configure a port in settings.json, it's set to a random local port. But if I use the "Create New Forward" option, it works correctly.
Yes, with "Create New Forward" command also works for me.
Yes , I'm having the same problem.
Same issue
I think new port is being assigned before old one manages to disconnect, as vscode reboots almost instantly
Have this problem got resolved? I encountered this issue onthe newest version.
I don't know @XueshiQiao. In theory it was added for the next milestone.
The endgame of this iteration is planned for the next friday. We will see if is solved.
It's shipped in the nightly extension.
Most helpful comment
It's shipped in the nightly extension.