-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Ensure VS Code Desktop can reconnect to workspace after timeout #10288
Comments
A solution to this issue may be something where a dialog pops up when a workspace times out, similar to how GitHub Codespaces does it. Just having a button to restart the workspace easily would be great (#4782 may be related to this solution). |
Thanks for raising @tysonrm ! 🙏 It won't be solved by, but relates to: |
A potential solution: intercept ssh requests in k8 ingress controller, check/restart targeted workspace, foward ssh. |
Is there a workaround for this for now? Is there a way to extract the password from the new workspace link and then give it to vscode to just resume? |
I tried getting the password out of the ssh link from the dashboard and providing that to the dialog asking for the password - but it didn't work. In fact, it looked from the prompt in the dialog that somehow the password (or what I thought was the password, between |
@narkeeso @david-bakin with pre-release version of |
@jeanp413 - Took me a second to figure it out - you still get a "enter your password" prompt at the top of VSCode but you ignore it and click the "Reload Window" button down at the bottom right - and your restarted workspace hooks right up. 👍 |
Good catch @david-bakin I created an issue for that bug #11428 |
As @jeanp413 mentioned, if you're using the SSH Gateway with an uploaded SSH key VS Code should be able to reconnect when you start / restart the workspace (see: related docs). To configure:
This doesn't entirely solve the problem as you'll still have to go to the workspace stop page or dashboard to restart the workspace, and it indeed would be nice if VS Code could wake up your workspace for you. However, I think the other suggestions are captured in: Prompt for users when workspace stopping: Ensure user can restart workspace from within VS Code: So I will close this issue 🙏 |
Still doesn't work when the cluster changes :( |
Hey @iojcde thanks for raising the feedback Cluster name changes is a known current limitation, and is raised here: If you have any other thoughts, would like to track the issue or upvote to raise more visibility 🙏 |
Is your feature request related to a problem? Please describe
Yes, having selected local IDE, when workspace times out, IDE can't reconnect (because it doesn't know to restart the workspace.)
Describe the behaviour you'd like
A customization to VSCode and other popular IDEs that restarts the workspace before attempting to reconnect to it.
Describe alternatives you've considered
A ping to prevent the workspace from timing out.
I'm very busy but it might be worth it to contribute if I get some guidance on this. Love your platform. Excellent work!
Additional context
The text was updated successfully, but these errors were encountered: