With the new debug API we need to register DebugConfigurationProvider early enough so that VS Code has them available when it needs them.
Since DebugConfigurationProvider are typically registered in the activate function of an extension, we have to find a way to activate the corresponding extensions before debugging starts.
I've tried to use these actions to activate the extension that registers a DebugConfigurationProvider:
"onCommand:workbench.action.debug.selectandstart",
"onCommand:workbench.action.debug.configure",
"onCommand:workbench.action.debug.start",
but most of the time the registration in the extension does not happen in time for VS Code to pick it up. So I had to resort to "*" with the side effect that the extension now starts on startup of VS Code.
So we need a more robust mechanism that allows to activate extensions for registering DebugConfigurationProvider just in time before debugging starts.
@jrieken can provide the details.
With the new debug API we need to register
DebugConfigurationProviderearly enough so that VS Code has them available when it needs them.Since
DebugConfigurationProviderare typically registered in theactivatefunction of an extension, we have to find a way to activate the corresponding extensions before debugging starts.I've tried to use these actions to activate the extension that registers a
DebugConfigurationProvider:but most of the time the registration in the extension does not happen in time for VS Code to pick it up. So I had to resort to
"*"with the side effect that the extension now starts on startup of VS Code.So we need a more robust mechanism that allows to activate extensions for registering
DebugConfigurationProviderjust in time before debugging starts.@jrieken can provide the details.