Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run platformio command from my extension code and restart if this already running? #4259

Open
SeryiBaran opened this issue Feb 22, 2025 · 0 comments

Comments

@SeryiBaran
Copy link

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 (MY_PLATFORMIO_PROJECT)' 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.

VSCode developers comments `I do not think this is possible. The command would have to support that as an argument.": microsoft/vscode-discussions#1213 (comment)

On StackOverflow: you could [raise an issue ticket](https://github.com/platformio/platformio-vscode-ide/issues/new) asking the maintainers to add a command that builds and restarts first if a build is already happening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant