You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature request: preLaunchTask shouldn't be triggered when restarting debug. #17439
Can't tell how each and every person uses the debug launch configuration, but I guess that many of us use it to setup the debugging environment.
Use case
In my case, I simply use preLaunchTask to transpile my TS files.
As you debug, you sometimes simply need to modify the breakpoints, or you just want to restart because you stepped over something you realise you should have stepped into.
Problem
The issue is, that every time you restart the debug session, preLaunchTask is executed and takes some time although the code hasn't changed.
I assume that when people want to change the code, they:
Stop the debugging session
Modify the code
Start the session again.
I may be wrong and some people would prefer the current behaviour, in which case it would be nice to add an option to choose whether or not to trigger the preLaunchTask.
I presume most people make compiling tasks as watching ones which triggers the compilation on file change only. They start the task manually at the start of editing session and do not set them as preLaunchTask. I had an old issue (#3929) where I tried to sway people to make preLaunchTask to act differently if it ware a watching task, i.e. not to try to restart it if it is already running. Somehow nobody cared to look into it...
Activity
Spown commentedon Dec 17, 2016
I presume most people make compiling tasks as watching ones which triggers the compilation on file change only. They start the task manually at the start of editing session and do not set them as
preLaunchTask. I had an old issue (#3929) where I tried to sway people to makepreLaunchTaskto act differently if it ware a watching task, i.e. not to try to restart it if it is already running. Somehow nobody cared to look into it...weinand commentedon Sep 17, 2018
Isidor Nikolic (@isidorn) fix it or close it.
Izhaki commentedon Sep 17, 2018
Closed due to no activity.