registerDebugConfigurationProvider method
- String debugType,
- DebugConfigurationProvider provider, [
- DebugConfigurationProviderTriggerKind? triggerKind
Register a {@link DebugConfigurationProviderdebug configuration provider} for a specific debug type.
The optional {@link DebugConfigurationProviderTriggerKindtriggerKind} can be used to specify when the provideDebugConfigurations method of the provider is triggered.
Currently two trigger kinds are possible: with the value Initial (or if no trigger kind argument is given) the provideDebugConfigurations method is used to provide the initial debug configurations to be copied into a newly created launch.json.
With the trigger kind Dynamic the provideDebugConfigurations method is used to dynamically determine debug configurations to be presented to the user (in addition to the static configurations from the launch.json).
Please note that the triggerKind argument only applies to the provideDebugConfigurations method: so the resolveDebugConfiguration methods are not affected at all.
Registering a single provider with resolve methods for different trigger kinds, results in the same resolve methods called multiple times.
More than one provider can be registered for the same type.
Implementation
_i3.Disposable registerDebugConfigurationProvider(
_i2.String debugType,
_i3.DebugConfigurationProvider provider, [
_i3.DebugConfigurationProviderTriggerKind? triggerKind,
]) =>
_i4.callMethod(
this,
'registerDebugConfigurationProvider',
[
debugType,
provider,
triggerKind?.name ?? _i5.undefined,
],
);