if custom task, get type from that (#169029)

fix #166035
This commit is contained in:
Megan Rogge 2022-12-13 12:30:16 -06:00 committed by GitHub
parent fe646508b2
commit f99a293cef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2830,8 +2830,9 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
return true;
}
}
} else if (type && t.type === type) {
} else if (type && t.type === type || (CustomTask.is(t) && t.customizes()?.type === type)) {
return true;
}
return false;
});