Add task provider enabled check back in

This commit is contained in:
Alex Ross 2021-11-23 11:02:42 +01:00
parent f3d35c5926
commit 319d2458d0
No known key found for this signature in database
GPG key ID: 89DDDBA66CBA7840

View file

@ -776,7 +776,9 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
const types: string[] = [];
if (this.isProvideTasksEnabled()) {
for (const definition of TaskDefinitionRegistry.all()) {
types.push(definition.taskType);
if (this.isTaskProviderEnabled(definition.taskType)) {
types.push(definition.taskType);
}
}
}
return types;