mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 02:58:56 +01:00
testing: improve cancellation, and allow test runs to be individually cancelled
Fixes #125712
This commit is contained in:
@@ -52,6 +52,10 @@ export class MainThreadTesting extends Disposable implements MainThreadTestingSh
|
||||
this.proxy.$publishTestResults(prevResults);
|
||||
}
|
||||
|
||||
this._register(this.testService.onCancelTestRun(({ runId }) => {
|
||||
this.proxy.$cancelExtensionTestRun(runId);
|
||||
}));
|
||||
|
||||
this._register(resultService.onResultsChanged(evt => {
|
||||
const results = 'completed' in evt ? evt.completed : ('inserted' in evt ? evt.inserted : undefined);
|
||||
const serialized = results?.toJSON();
|
||||
|
||||
Reference in New Issue
Block a user