Skip to content

Language Runtime terminals incorrectly restored after quitting #213

Closed
@jmcphers

Description

@jmcphers

Quitting Positron should also end any Language Runtime sessions. While the sessions do exit when Positron does, they are brought back in a bad state when it is next opened.

This happens since we're piggybacking on the existing Terminal infrastructure; VS Code attempts to reload the "persistent" terminals by replaying the shell command used to start them, creating an orphaned Runtime.

We want the Language Runtime terminals to have the same lifetime as the PtyHost. This does not seem to be possible with the existing Terminal API; its isTransient flag controls both restart and reload behavior. Language Runtime terminals should persist through reload, but not restart.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions