In the latest VS Code update, it supports persistent terminal processes. However, if you're running a NPM script - it's executed as a task and the task process is destroyed on window reload. Is there a way to fix this or a workaround?
For example, I have a script npm run start that opens a webserver. If I type that in terminal manually, it works on reload. But if I run the npm script via the UI, it terminates on window reload.
In the latest VS Code update, it supports persistent terminal processes. However, if you're running a NPM script - it's executed as a task and the task process is destroyed on window reload. Is there a way to fix this or a workaround?
https://code.visualstudio.com/updates/v1_54#_retain-terminal-processes-on-window-reload
For example, I have a script
npm run start
that opens a webserver. If I type that in terminal manually, it works on reload. But if I run the npm script via the UI, it terminates on window reload.