Skip to content

Make it easy to get the ssh connection parameters inside browser editor #9770

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
josh-braid opened this issue May 4, 2022 · 3 comments
Closed

Comments

@josh-braid
Copy link

josh-braid commented May 4, 2022

Is your feature request related to a problem? Please describe

Often, I open the gitpod editor and want to copy the ssh connection line, but it's not in the hamburger menu, so I have to open a new tab to go to my workspaces and copy the link.

Describe the behaviour you'd like

I'd like to be able to get the link from inside the gitpod window, maybe in the hamburger menu next to the "Open in VSCode" options.

Describe alternatives you've considered

Alternate 1: it'd be nice if opening a gitpod workspace opened it in a new window, rather than replacing the window. Since vscode is such a heavyweight app that loads slowly, I'm not inclined to just hit back, so I find myself opening a new tab a lot just to go back to the workspace list.

Alternate 2 (true dream solution): If I could specify my terminal emulator in the gitpod vscode plugin and it could run the gitpod tasks in tabs of my emulator (automatically connecting over ssh first) rather than running them in the vscode terminal (which is awful).

Additional context

My current workflow at the beginning of the day is like:

  1. Open gitpod in the browser, wait for it to completely load (otherwise opening local vscode often fails to connect)
  2. Once it's up, go to the hamburger menu and select "open in vscode"
  3. One or two rounds of "Could not connect, retry or close remote?"
  4. Close all the vscode terminal task windows.
  5. Open a new tab with gitpod workspaces in it, copy the ssh connection params
  6. For each tab:
    • open a new tab in my terminal emulator for each task (currently Konsole) and paste connection params
    • cd to the /workspace/<reponame> since ssh lands me at the home directory
    • start the task for that tab (typescript watch or webpack watch etc)
  7. Close the gitpod browser window
  8. Make sure not to leave the computer alone for too long because otherwise vscode / ssh will disconnect and I'll have to do it over again.
  9. Install github copilot in the remote vscode window (vscode plugin not available in the browser)
@gtsiolis
Copy link
Contributor

gtsiolis commented May 6, 2022

Thanks for bringing this up, @josh-braid!

The plan is to introduce a command palette action to connect to workspace via SSH, see #9230.

I'm going to close this in favor of #9230 but feel free to reopen if this describes a different problem or solution.

Cc @akosyakov @loujaybee

@gtsiolis gtsiolis closed this as completed May 6, 2022
@loujaybee
Copy link
Member

loujaybee commented May 27, 2022

Hey @josh-braid ! Thanks so much for the feedback, and the detailed write-up. Hearing the steps you take to get setup was also really helpful. We don't have a well optimised workflow for users who are using or connecting from external terminals, however I've got some thoughts on your workflow that could help you out a little...

Open gitpod in the browser, wait for it to completely load (otherwise opening local vscode often fails to connect)

Have you considered setting VS Code Desktop as a user preference, then when the workspace loads, you'll get a splash page with a prompt... might save a little time. You can also get the SSH copy/paste from this screen.

A local CLI open command would be nice here (working on it! #7185)

Once it's up, go to the hamburger menu and select "open in vscode"

Small optimisation... but you can also use command palette here to save clicking (if that's your thing!)

One or two rounds of "Could not connect, retry or close remote?"

SSH method of connection is being updated quite soon, should bring some significant connection stability benefits #8513

cd to the /workspace/ since ssh lands me at the home directory

Agree, this needs an update - #9377

start the task for that tab (typescript watch or webpack watch etc)

You can use gp tasks to fetch up any running processes defined in your .gitpod.yml (could help)

Make sure not to leave the computer alone for too long because otherwise vscode / ssh will disconnect and I'll have to do it over again.

Flexible timeouts are currently being looked into #9038 🙏

@josh-braid
Copy link
Author

Hey @loujaybee thanks for the response!

Have you considered setting VS Code Desktop as a user preference, then when the workspace loads, you'll get a splash page with a prompt... might save a little time. You can also get the SSH copy/paste from this screen.

I found this option, but when I switch to it, I get the message "container workspace completed; containers of a workspace pod are not supposed to do that" and it fails to launch. I just tried it with workspace braidlending-braid-0t2yvtpx9aj if that helps diagnose it.

Thanks for pointing out gp tasks, I didn't know about that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants