A TaskContribution allows to contribute custom TaskResolvers and/or TaskProviders.
@injectable()export class ProcessTaskContribution implements TaskContribution { @inject(ProcessTaskResolver) protected readonly processTaskResolver: ProcessTaskResolver; registerResolvers(resolvers: TaskResolverRegistry): void { resolvers.register('process', this.processTaskResolver); resolvers.register('shell', this.processTaskResolver); }} Copy
@injectable()export class ProcessTaskContribution implements TaskContribution { @inject(ProcessTaskResolver) protected readonly processTaskResolver: ProcessTaskResolver; registerResolvers(resolvers: TaskResolverRegistry): void { resolvers.register('process', this.processTaskResolver); resolvers.register('shell', this.processTaskResolver); }}
Protected
Readonly
Register task resolvers using the given TaskResolverRegistry.
TaskResolverRegistry
the task resolver registry.
A TaskContribution allows to contribute custom TaskResolvers and/or TaskProviders.
Example usage