Restore terminal sessions across application restarts #131634
Labels
feature-request
Request for new features or functionality
on-release-notes
Issue/pull request mentioned in release notes
on-testplan
terminal
Integrated terminal issues
Milestone
I have looked in the past at supporting the auto creation of terminals for workspaces and my conclusion was that the amount of customization that people wanted would be too much to add to core and would be best left to an extension. With the upcoming terminal location API extensions will be able to accomplish this properly.
The major case of restoring terminals across restarts without bringing in the complexity of a pty host that lives outside of the main process could be solved by saving the all terminal buffers/cwd/icon/etc. on a restart and restoring them similar to how Terminal.app restored when macOS is updated where it will restore the buffer, print something like
[Session restored from <datetime>]
and then create a new shell. This in combination with task reconnection and similar restoration should make the restart VS Code experience really nice.Right now the plan is to look at this in the November iteration after our clean up iteration.
cc @alexr00: I'm not sure right now how tasks would get their buffer restored yet but it would probably need something beyond #117408 to create a new task using an existing terminal.
The text was updated successfully, but these errors were encountered: