testing: fix rerun last not working for extension triggered runs

Fixes #144169
This commit is contained in:
Connor Peet
2022-03-02 15:39:39 -08:00
parent c4cd783c2f
commit 29443c912f

View File

@@ -153,7 +153,7 @@ export class ExtHostTesting implements ExtHostTestingShape {
await this.proxy.$runTests({
isUiTriggered: false,
targets: [{
testIds: req.include?.map(t => t.id) ?? [controller.collection.root.id],
testIds: req.include?.map(t => TestId.fromExtHostTestItem(t, controller.collection.root.id).toString()) ?? [controller.collection.root.id],
profileGroup: profileGroupToBitset[profile.kind],
profileId: profile.profileId,
controllerId: profile.controllerId,
@@ -542,9 +542,9 @@ export class TestRunCoordinator {
this.proxy.$startedExtensionTestRun({
controllerId,
profile: profile && { group: profileGroupToBitset[profile.kind], id: profile.profileId },
exclude: request.exclude?.map(t => t.id) ?? [],
exclude: request.exclude?.map(t => TestId.fromExtHostTestItem(t, collection.root.id).toString()) ?? [],
id: dto.id,
include: request.include?.map(t => t.id) ?? [collection.root.id],
include: request.include?.map(t => TestId.fromExtHostTestItem(t, collection.root.id).toString()) ?? [collection.root.id],
persist
});