microsoft / vscode-npm-scripts

VSCode extension for running npm-scripts and validating the package.json files.
MIT License
215 stars 55 forks source link

Persistent terminal not working with scripts #148

Closed Joebayld closed 2 years ago

Joebayld commented 3 years ago

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.

egamma commented 2 years ago

This is a duplicate of https://github.com/microsoft/vscode/issues/117408