fabiospampinato / vscode-terminals

An extension for setting-up multiple terminals at once, or just running some commands.
MIT License
121 stars 19 forks source link

Question: Disable default terminal when using terminals manager #89

Closed fjunk closed 3 months ago

fjunk commented 4 months ago

Hi! I just started using terminals manager and ran into an "issue":

Whenever I close and restart the IDE, some kind of "default terminal" is also created in addition to the one defined in the terminals.json file. Is there any config i have to set in either vscode or the terminals manager config to disable this behaviour?

Couldn't find a working solution. My current config looks like this:

{
  "autorun": true,
  "terminals": [
    {
      "focus": true,
      "name": "sensor-station",
      "description": "This is a description",
      "color": "terminal.ansiRed"
    }
  ]
}

those two are then created:

image

Any help would be appreciated! :)

fabiospampinato commented 3 months ago

As far as I know vscode never add a setting for this 🤔 Maybe the extension could close all terminals at startup time, but it would be a bit inaccurate, and it wouldn't work as well as if vscode just didn't restore the terminal.

fabiospampinato commented 3 months ago

Ah nevermind, these settings seem to fix it:

  "terminal.integrated.persistentSessionReviveProcess": "never",
  "terminal.integrated.hideOnStartup": "always",
fjunk commented 3 months ago

Thanks a lot for the investigation! :)