fabiospampinato / vscode-terminals

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

When VS Code reloads window, it recreates same terminals, they become duplicated #85

Closed Kenya-West closed 8 months ago

Kenya-West commented 1 year ago

I have config as follows:

{
  "autorun": true,
  "terminals": [
    {
      "name": "NPM: Start (dev)",
      "description": "Runs NPM start with development configuration",
      "onlyMultiple": true,
      "icon": "loaded-scripts-view-icon",
      "command": "npm run start:dev"
    },
    {
      "name": "CLI: Angular",
      "split": "NPM: Start (dev)",
      "onlyMultiple": true,
      "focus": true,
      "execute": "npx ng g"
    }
  ]
}

This creates splitted terminals on VS Code's launch.

When I update extensions, update VS Code itself, or do whatever action that causes VS Code's window to reload - it recreates these terminals again. Even when old ones were restored already by the moment. So they become duplicated.

P. S. When I do > Terminals: Run command, the extension do not create terminal if it exists.

besseddrest commented 11 months ago

I had this problem too, this solution worked for me in a similar/duplicate issue: https://github.com/fabiospampinato/vscode-terminals/issues/63#issuecomment-1021520652

Kenya-West commented 11 months ago

Thanks! This generally solves my problem.

Since this issue, in fact, a duplicate of #63, then developer can close this one.