How to run command from extension code and restart if this already running?
I need to run command platformio-ide.build
with vscode.commands.executeCommand
, but if this command already running, VS Code asks The task 'PlatformIO: Build (ardustat)' is already active. [Terminate task] [Restart task]
. I need to automatically restart the command in this case. What do I need to do? I’ve tried to read VS Code docs, but not found anything.
How to run command from extension code, and if this already running – restart?
I’m need to run command platformio-ide.uploadAndMonitor
with vscode.commands.executeCommand
, but if this command already running, vscode asks The task 'PlatformIO: Build (ardustat)' is already active. [Terminate task] [Restart task]
. I’m need to AUTOMATICALLY restart command in this case, but i’m dumb pig.