vscode-terminals icon indicating copy to clipboard operation
vscode-terminals copied to clipboard

Recycle=true not recycling

Open Marcel0024 opened this issue 3 years ago • 3 comments

I have these two terminals:

{
  "autorun": true,
  "autokill": true,
  "terminals": [
     {
        "name": "npm start",
        "command": "npm start",
        "recycle": true
      },
      {
        "name": "npm test",
        "command": "npm test -- --coverage --watch-all",
        "recycle": true
      }
  ]
}

After restarting VS code, it just makes new terminals: image

Expected behaviour when using recycle: true the old terminals will be reused and not create a new one

Marcel0024 avatar Dec 18 '21 21:12 Marcel0024

I fixed this by disabling Persistent Session Revive in settings:

In VSCode settings ( Ctrl+, ) : Filter for "@feature:terminal Persistent Session Revive Process" and set it to "never". This prevents VSCode from opening duplicate sets of terminals on application launch.

Now my currently open Terminals Manager terminals recycle properly on application launch :)

gbny avatar Jan 25 '22 19:01 gbny

@gbny

Nice! thanks that works. Maybe it should be documented.

Marcel0024 avatar Jan 26 '22 15:01 Marcel0024

@gbny's workaround doesn't work when I use VSC's developer container, even when persistent bash history is enabled.

simensol avatar Apr 11 '22 10:04 simensol