Skip to content

Test modal dialog for port collisions #5118

Closed

Description

@alexr00

Refs: #4958

Complexity: 4

Create Issue


In some cases, we now show a modal dialog when the preferred local port is unavailable for port forwarding.

  1. Connect to your remote and make sure that automatic port forwarding is enabled and is detecting ports via process (remote.autoForwardPortsSource).
  2. 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.
  • Usage: Warn on port collisions when forwarding ports  #4958 (comment)
  • 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.
  1. 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions