I have a build script that runs nodemon. Often the build window goes away, and I forget nodemon is running. If I push ctrl+b again, it causes a new node.exe to launch, with errors, and then the node processes have to be killed through Task Manager. I’ve added these two commands to help with killing the build process and to show the build window:
{"keys": "pause"], "command": "exec", "args": {"kill": true} },
{"keys": "ctrl+shift+b"], "command": "show_panel", "args": {"panel": "output.exec"}}
]
That’s an improvement, but what would be even better is if when I push ctrl+b, rather than running nodemon again, I would like to check if nodemon is running, i.e. the build has not been killed yet, and if it’s running, show the build panel, otherwise, launch the build (and show the panel). Is there a way to do this?