Skip to content

Support attach to session in local terminals #118241

@Tyriar

Description

@Tyriar

The command Terminal: Attach to Session exists on remote but didn't work in local when we added reconnect since terminals are pretty short lived after the window goes down. I was thinking this would be good to support if the window crashed such that the processes can be recovered, plus we could explore configuring the live time and whether terminals should be closed on window close in the future.

Repro:

  1. Open 2 windows
  2. Open terminals in each
  3. Type in each terminal to differentiate them
  4. Kill the renderer process for one of them
  5. Running Terminal: Attach to Session should allow recovering of the terminals after ~4 seconds.

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code InsidersterminalGeneral terminal issues that don't fall under another labelverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions