Skip to content

SSH monitor: improve process discovery and sleep/wake recovery #845

@EhabY

Description

@EhabY

On Linux systems without netstat, find-process could not resolve the SSH PID for a port. This meant the extension could not find the proxy log file (breaking View Logs) or read network info (breaking the network status bar).

Additionally, after laptop sleep/wake, VS Code may reconnect SSH on a new port. The extension did not detect this, so WebSockets were left in a TCP half-open state and the label formatter was not re-registered.

Changes

  • Bump find-process to 2.1.1: uses ss -> netstat -> lsof on Linux, netstat -> lsof on macOS.
  • Detect SSH port changes in the Remote SSH log to reset discovery backoff.
  • Reconnect WebSockets and re-register the label formatter on SSH PID change.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions