Skip to content
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

Retry connection instead of immediately erroring #371

Open
code-asher opened this issue Sep 30, 2024 · 0 comments
Open

Retry connection instead of immediately erroring #371

code-asher opened this issue Sep 30, 2024 · 0 comments
Assignees

Comments

@code-asher
Copy link
Member

Suppose you have a VPN and when you boot your computer, VS Code automatically reconnects but this fails because your VPN is not up yet. Then you have to go around hitting "ok" on the prompts for all the windows you have open, and then re-open all the projects all over again.

So two things:

  1. Instead of OK, an error here should have "Retry" and "Close remote"
  2. We should retry the connection automatically with an exponential backoff, with an option to retry immediately and a countdown to the next retry. At least, we should do this if the error appears to be retryable. In this specific VPN case, it seems the status code is missing, so retry when there is no status code (is it a timeout?). Maybe 502-504 as well?
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