testing: clean up actions, add run/debug all, rm duplication

The WorkspaceTestCollectionService duplicated collection logic
unnecessarily. Centralize to the TestService's collection.

This also moves the state updates for discovering tests, and a new
update for adding roots, into the diff, which lets us synchronize those
changes with the changes to test collections.

There's a super crazy bug with the "run all" action that I have
not dove into yet.
This commit is contained in:
Connor Peet
2021-01-19 17:41:01 -08:00
parent bb1c05e62e
commit 686cd7df53
17 changed files with 442 additions and 280 deletions

View File

@@ -1839,7 +1839,6 @@ export interface MainThreadTestingShape {
$unsubscribeFromDiffs(resource: ExtHostTestingResource, uri: UriComponents): void;
$publishDiff(resource: ExtHostTestingResource, uri: UriComponents, diff: TestsDiff): void;
$runTests(req: RunTestsRequest, token: CancellationToken): Promise<RunTestsResult>;
$updateDiscoveringCount(resource: ExtHostTestingResource, uri: UriComponents, delta: number): void;
}
// --- proxy identifiers