Skip to content

WSL 2 connection lost after too much time in Modern Standby #3454

@adrianghc

Description

@adrianghc
  • VS Code Version: 1.47.3
  • Local OS Version: Windows 10 19042.421
  • Remote OS Version: Ubuntu 18.04
  • Remote Extension/Connection Type: WSL

Steps to Reproduce:

  1. Start WSL 2 on a device with Modern Standby, e.g. a Surface.
  2. Put the device into Modern Standby for several hours, e.g. overnight.
  3. Wake up the device after several hours, e.g. in the morning.

In the morning, VS Code says it's lost its connection with WSL and needs to reload the window. However, calling wsl -l -v shows that the WSL 2 VM is indeed still running.

I've written about Modern Standby specifically because I don't know if this behavior occurs with normal standby as well, but I imagine it's probably specific to Modern Standby because Windows is still active there, but not during normal standby afaik.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugplan-reviewPM-highlighted item determined to be P1 or P2reconnectingAttempting to reconnect and it isn't clear whywslIssue in vscode-remote WSLwsl-team-interest

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions