testing: add refresh action

For #139737
This commit is contained in:
Connor Peet
2022-01-06 13:02:38 -08:00
parent 384cee8d17
commit a87cdeaec7
14 changed files with 215 additions and 28 deletions

View File

@@ -2159,15 +2159,22 @@ export interface ExtHostTestingShape {
$resolveFileCoverage(runId: string, taskId: string, fileIndex: number, token: CancellationToken): Promise<CoverageDetails[]>;
/** Configures a test run config. */
$configureRunProfile(controllerId: string, configId: number): void;
/** Asks the controller to refresh its tests */
$refreshTests(controllerId: string): Promise<void>;
}
export interface ITestControllerPatch {
label?: string;
canRefresh?: boolean;
}
export interface MainThreadTestingShape {
// --- test lifecycle:
/** Registers that there's a test controller with the given ID */
$registerTestController(controllerId: string, label: string): void;
$registerTestController(controllerId: string, label: string, canRefresh: boolean): void;
/** Updates the label of an existing test controller. */
$updateControllerLabel(controllerId: string, label: string): void;
$updateController(controllerId: string, patch: ITestControllerPatch): void;
/** Diposes of the test controller with the given ID */
$unregisterTestController(controllerId: string): void;
/** Requests tests published to VS Code. */