Open bassbreaker opened 1 year ago
Thanks for opening up an issue! This is an interesting one. For this to work I need to do some more task related setup e.g. setup a good task provider to provide the build, clean build and flash tasks. Might be worth it to do. For now the simple fix would be to use the shortcut ctrl/cmd+shift+b to launch the build taks. This would allow you to run the build task.
I will fix this in a next release as the current implementation is not how most build plugins do it. Will notify you once this has made it in the release.
In the
tasks.json
file, I made the"Build STM"
task"dependsOn"
another task (lets call itPreBuildTask
). This works fine when runningtask Build STM
. However, thePreBuildTask
does not run when using the Build option in the command menu for the ST extension in the Activity Bar. I noticed in thesrc/menu/CommandMenu.ts
script, the Build command simply runsstm32-for-vscode.build
instead of executing the task intasks.json
. Is it possible to make the Build option in the Command Menu run the"Build STM"
task instead?