Skip to content

VS Code Desktop: Auto forward ports from .gitpod.yml (sometimes ports are not detected or shown) #8377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
akosyakov opened this issue Feb 22, 2022 · 4 comments

Comments

@akosyakov
Copy link
Member

akosyakov commented Feb 22, 2022

Right now we rely on Remote SSH for VS Code Desktop support for port forwarding. It seems to have some auto forwarding built-in but it does not work always. We also observed that some extensions seem to be able to forward ports as well. Since we have a Gitpod extension running in their server we could investigate auto forwarding of ports from .gitpod.yml as well.

@axonasif
Copy link
Member

axonasif commented Feb 22, 2022

I'm not sure if this is helpful but I discovered a vscode settings 👀
Maybe you guys could utilize this functionality internally.

"remote.SSH.defaultForwardedPorts": [
    {
        "localPort": 8080,
        "name": "example",
        "remotePort": 8080
    }
],

Related discussion on discord
Tip: If anyone's wondering how to use it, put this on .vscode/settings.json on your repo.

@BrandiATMuhkuh
Copy link

Thank you for the "remote.SSH.defaultForwardedPorts trip. This solved my problem. While I did set the ports in the gitpod.yml, it seems to not pick them up in VSCode after I restarted VSCode. Now it all works!

@loujaybee loujaybee added the type: bug Something isn't working label Jun 29, 2022
@loujaybee
Copy link
Member

Cross referencing this comment, with user also mentioning that they don't see ports:

@loujaybee loujaybee changed the title [code-desktop] auto forward ports from .gitpod.yml VS Code Desktop: Auto forward ports from .gitpod.yml (sometimes ports are not detected or shown) Jul 26, 2022
@akosyakov
Copy link
Member Author

akosyakov commented Aug 4, 2022

@mustard-mh tried to reconfigure machine settings of VS Code to scan for all ports, but it does not seem to work

@mustard-mh Could you summarise any additional findings here please?

@jeanp413 jeanp413 self-assigned this Sep 13, 2022
@akosyakov akosyakov moved this to Scheduled in 🚀 IDE Team Sep 16, 2022
@jeanp413 jeanp413 moved this from Scheduled to In Progress in 🚀 IDE Team Sep 16, 2022
@jeanp413 jeanp413 closed this as completed Oct 4, 2022
Repository owner moved this from In Progress to Done in 🚀 IDE Team Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

6 participants