-
Notifications
You must be signed in to change notification settings - Fork 23
Prevent workspace being kept alive when it should not #309
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
Comments
Another observation. This issue may or may not happen depending on the timing as we only start the workspace if it is in the So if VS Code reconnects, and the workspace is still shutting down, the start will be skipped and it will wait for the stop build to finish, then say "the workspace is stopped" with an option to restart. If VS Code reconnects, and the workspace shut down quickly enough, once the plugin starts running the workspace will be already To make this not timing-dependendant, maybe we put this in a loop where we keep trying to get the workspace into a connectable state (in addition to the prompt to actually start the workspace). So basically:
|
https://coder.zendesk.com/agent/tickets/2970 corresponding zendesk ticket should be updated when this goes out |
Uh oh!
There was an error while loading. Please reload this page.
There is a problem (which might only exist on Linux) where if the workspace shuts off, VS Code tries to reconnect (which it actually seems to do by reloading the window, from what I have seen), and then as part of that the Coder plugin starts the workspace again, so a workspace stays up forever which is not always what a user wants.
If we can prevent the reload/reconnect to begin with, using a "Do you want to reconnect" popup, that would be great.
However, we might not be able to stop VS Code from reloading the window. If that is the case, we can instead show a "Your workspace is off, should we start it?" popup on the connect phase when the workspace is down, which has a similar effect but a bit delayed since it requires the window to reload and the plugin to get started up again first, and it means you have to answer yes for a first connect as well (unless there is a way for us to tell the difference between a first connect and reconnect).
Also probably worth looking into whether there are existing settings to control this behavior.
Also curious to see if the behavior is different between a workspace shutting down and temporary network instability. Does VS Code reload for the latter case, too? Maybe it makes a few attempts before reloading? Maybe in the first case our proxy command is exiting but in the latter case it stays up? Yeah it might be ssh exiting that is the trigger for the reload.
The text was updated successfully, but these errors were encountered: