You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A way to stop the integrated terminal from launching at startup #147192
*duplicateIssue identified as a duplicate of another issue(s)feature-requestRequest for new features or functionalityterminalGeneral terminal issues that don't fall under another label
I use VSCode to develop Rust project. If I run a build task (such as cargo build), it runs in the integrated terminal. If I close VSCode without closing that terminal session, next time I open the same workspace, the integrated terminal will launch at startup. The problem is that it launches with the default profile (with same "pwsh"), which is not reused by the build tasks. Therefore, that session is wasted and stays forever unless I manually close it.
I tested this is not a behavior introduced by any extension. I also tried every existing setting I can find. Nothing (such as terminal.integrated.enablePersistentSessions) works. Also, if I go to delete the workspace state file from data\user-data\User\workspaceStorage<random_string>, the terminal no longer opens, so I think it's from VSCode. Internet shows various way to auto launch terminal at startup, but I need the exact opposite.
Screenshot: The "pwsh" is the auto launched one. The second is the build task I launch.
Reacted by Peter Franken, nylnx, Fujita Hitoshi, Timothy Makobu, Dylan Barnard and Behnam
You sure you're unable to reproduce this with all extensions disabled?
I've had exactly this happen before and it took me a while to figure out.
Turned out that the language's official extension picked up on build commands I ran through the integrated terminal, and then tried to be helpful by "hijacking" my invocation and running its own VSCode Task instead (which was configured to open a terminal window).
This is 100% reproducible with all my installed extensions disabled. It has nothing to do with Rust (I don't have Rust extension). All you need to do is:
To Microsoft: Please kill this feature with fire, or at least disable it by default. The reanimated sessions are unpredictable, confusing, and often lead to conflicts and crashes.
Wait. I tried again, and it's no longer working. Was I hallucinating? I even went to clear the workspaceStorage directory and no.
Also, if persistent session is already disabled by terminal.integrated.enablePersistentSessions, why would terminal.integrated.persistentSessionReviveProcess still needed? I'm not sure if this revival thing is linked to persistent sessions, since the terminal is fresh new every time.
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
This is really annoying. Please disable this "feature". VSC is already bloated and slower than some non-Electron IDEs. This weird behavior only makes it worse. There's no reason that terminal cannot start in the background.
*duplicateIssue identified as a duplicate of another issue(s)feature-requestRequest for new features or functionalityterminalGeneral terminal issues that don't fall under another label
Activity
pcjmfranken commentedon Apr 17, 2022
You sure you're unable to reproduce this with all extensions disabled?
I've had exactly this happen before and it took me a while to figure out.
Turned out that the language's official extension picked up on build commands I ran through the integrated terminal, and then tried to be helpful by "hijacking" my invocation and running its own VSCode Task instead (which was configured to open a terminal window).
Edit: And that's suspiciously similar to what the official Rust extension says it does 😉
CrendKing commentedon Apr 17, 2022
This is 100% reproducible with all my installed extensions disabled. It has nothing to do with Rust (I don't have Rust extension). All you need to do is:
I don't want that terminal be opened at startup.
pcjmfranken commentedon Apr 17, 2022
Thanks for confirming, was
Just recalled there's another setting involving this weird session revival behaviour:
To Microsoft: Please kill this feature with fire, or at least disable it by default. The reanimated sessions are unpredictable, confusing, and often lead to conflicts and crashes.
CrendKing commentedon Apr 17, 2022
You are exactly correct sir! The combination of the two did it. Feel free to close this.
CrendKing commentedon Apr 17, 2022
Wait. I tried again, and it's no longer working. Was I hallucinating? I even went to clear the workspaceStorage directory and no.
Also, if persistent session is already disabled by
terminal.integrated.enablePersistentSessions, why wouldterminal.integrated.persistentSessionReviveProcessstill needed? I'm not sure if this revival thing is linked to persistent sessions, since the terminal is fresh new every time.vscode-triage-bot commentedon May 3, 2022
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!
vscodenpa commentedon Jun 23, 2022
This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!
ibehnam commentedon Dec 8, 2022
This is really annoying. Please disable this "feature". VSC is already bloated and slower than some non-Electron IDEs. This weird behavior only makes it worse. There's no reason that terminal cannot start in the background.
Tyriar commentedon Dec 12, 2022
/duplicate #39137