Retry connection instead of immediately erroring
- Vorherrschende Sprache
- TypeScript
- Sterne
- 130
- Forks
- 48
- Ø Merge
- 3 T. 3 Std.
- Gemergte PRs (30 T.)
- 15
Beschreibung
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?
Beitragsleitfaden
Rechercherichtung
Das Issue nennt keine Dateien, Tests oder Einstiegspunkte. Beginne damit, den Fehlerablauf der VS Code-Remote-Verbindung und seine Prompts nachzuverfolgen, und ermittle anschließend, wie erneut versuchbare Fehler identifiziert werden; als abgeschlossen gilt die Möglichkeit, Retry und Close remote anzubieten, mit automatischen Wiederholungsversuchen mit exponentiellem Backoff, einer Option für sofortiges erneutes Versuchen und einem Countdown, wo dies angemessen ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- typescript
- Bereich
- devtools, networking
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 30/100