Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test: terminal opt-out of persistence API proposal #139112

Closed
2 tasks done
meganrogge opened this issue Dec 14, 2021 · 0 comments
Closed
2 tasks done

Test: terminal opt-out of persistence API proposal #139112

meganrogge opened this issue Dec 14, 2021 · 0 comments

Comments

@meganrogge
Copy link
Contributor

meganrogge commented Dec 14, 2021

Refs: #118726

Complexity: 3

Authors: @meganrogge, @Tyriar

Create Issue


This milestone, we added a new extension terminal option that allows disabling terminal persistence.

export interface TerminalOptions {
      /**
	* Opt-out of the default terminal persistence on restart and reload
        */
      disablePersistence?: boolean;
}

Setup

  • In an extension, call createTerminal with and without a pty provided.
  • Set disablePersistence and reload/restart the window to confirm the option takes effect.
  • Try providing a location to test that this works for both terminals in the panel and those in the editor area
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants