Currently we have the ability to specify a preLaunchTask in launch.json configurations. This is extremely helpful in running a task that should kick off before launch.
Conversely, there could be post launch tasks that would be helpful to automate their execution. An example of a post launch task would be to, after the launch of the application, open a browser window with a specific URL to the current application.
In summary, a postLaunchTask would be helpful as preLaunchTask is.
@weinand any updates on the progress of the postLaunchTask feature? Or perhaps, do you know of any existing extensions that can perform a similar function?
We accept PRs that fix this.
Here's a code pointer on how preLaunchTask is implemented
https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/parts/debug/electron-browser/debugService.ts#L892
@tstringer
@isidorn
I will pick this up for December...
Is it possible to support this for compound launch configs - so that, for example, once all my node-js processes are up, inject some scenario data or clear the DB from previous experiment....
@trstringer why did you close this? I think this is still an appropraite feature request?
We currently support a postDebugTask which runs after the whole debugging stopped, a postLaunchTask is still not supported as far as I know.
I wasn't sure of the timeline, it was almost a year stale at this point. I'll reopen!
Most helpful comment
@tstringer
@isidorn
I will pick this up for December...