vscode-terminals
vscode-terminals copied to clipboard
Recycle=true not recycling
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:
Expected behaviour
when using recycle: true
the old terminals will be reused and not create a new one
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
Nice! thanks that works. Maybe it should be documented.
@gbny's workaround doesn't work when I use VSC's developer container, even when persistent bash history is enabled.