testing: update test results api to spec

Refs https://github.com/microsoft/vscode/issues/107467#issuecomment-780776814
This commit is contained in:
Connor Peet
2021-02-17 16:30:31 -08:00
parent 00ca99f567
commit b09a71dce7
11 changed files with 172 additions and 85 deletions

View File

@@ -341,11 +341,11 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
},
get onDidChangeTestResults() {
checkProposedApiEnabled(extension);
return extHostTesting.onLastResultsChanged;
return extHostTesting.onResultsChanged;
},
get testResults() {
checkProposedApiEnabled(extension);
return extHostTesting.lastResults;
return extHostTesting.results;
},
};