question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing option for disabling terminal restoration

See original GitHub issue

Whenever I open a project, chances are that a terminal will automatically open because the previous time I opened that project, its window had 1 or more terminals. This doesn’t work for me:

  1. This “feature” is unpredictable. I may open a project 1 week or month later, who remembers if that window had a terminal?
  2. It’s useless. If I want a terminal I’m a shortcut away from it. If I don’t need it however, I have to focus to it and close it.
  3. I use my Terminals extension for managing terminals, I absolutely never need an empty terminal automatically open at startup.

What about a terminal.restoreTerminal: boolean option for disabling this?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:7
  • Comments:24 (20 by maintainers)

github_iconTop GitHub Comments

3reactions
mrchanteycommented, Dec 5, 2021

A tangential feature to this is persistent sessions, these can be disabled with the following setting:

"terminal.integrated.enablePersistentSessions": false
2reactions
Tyriarcommented, Dec 17, 2021

@agausmann the python extension will soon be able to opt-out of the feature which sounds like it might make sense for certain Python terminals. @brettcannon your team might want to adopt this proposal: https://github.com/microsoft/vscode/issues/118726 (it hasn’t yet been to the API sync so it could change in early Jan).

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to disable session restore message in vscode terminal
This feature can be disabled using the following two lines. Open "settings" -> Enter these commands to revert the VSCode behavior.
Read more >
Disabling and Enabling System Integrity Protection
To disable SIP, do the following: Restart your computer in Recovery mode. Launch Terminal from the Utilities menu. Run the command csrutil disable...
Read more >
Clear terminal and prevent restoration - Apple StackExchange
Final Solution: Remove the Terminal saved state, located in: ~/Library/Saved Application State/com.apple.Terminal.savedState/*.
Read more >
How to Disable / Enable Windows Recovery Environment on ...
By disabling the Windows Recovery Environment, you the Advanced options menu will no longer contain the option to 'Reset this PC'.
Read more >
How to Completely Disable Gatekeeper in macOS - MakeUseOf
To restore the legacy setting that lets you completely disable Gatekeeper, you'll need to run a command in Terminal Terminal is macOS's ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found