Post-build / Pre-debug steps in build system
ChristianWeyer opened this issue · 1 comments
What a lovely extension! Super well-done job.
Some times, I need to do some post-build or pre-debug steps. Like creating a .d64 with the compiled .prg and add another (external) .prg to the .d64. And then launch VICE with the .d64.
How would one approach this with VS64?
Thanks!
Thanks for the nice feedback!
Currently, there's no dedicated feature which supports custom actions - but vscode already comes with a quite capable task mechanism. Tasks can not just do the build, there is also a "pre-launch task" which is triggered before debugging, like this:
{
"version": "0.2.0",
"configurations": [
{
"type": "vice",
"request": "launch",
"name": "Launch Vice",
"preLaunchTask": "${defaultBuildTask}"
}
]
}
In addition, I would recommend looking at the vscode docs: https://code.visualstudio.com/docs/editor/tasks
I am not totally sure, but maybe there's a real use case for a vs64 feature to add custom build (or post-build, or pre-build) steps, maybe some python scripts to be executed, etc...
Cheers!
R.