mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 08:38:56 +01:00
testing: update api from feedback
This commit is contained in:
@@ -341,15 +341,11 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
? extHostTypes.ExtensionKind.Workspace
|
||||
: extHostTypes.ExtensionKind.UI;
|
||||
|
||||
const test: typeof vscode.test = {
|
||||
const tests: typeof vscode.tests = {
|
||||
createTestController(provider, label) {
|
||||
checkProposedApiEnabled(extension);
|
||||
return extHostTesting.createTestController(provider, label);
|
||||
},
|
||||
createTestItem(id, label, uri) {
|
||||
checkProposedApiEnabled(extension);
|
||||
return extHostTesting.createTestItem(id, label, uri);
|
||||
},
|
||||
createTestObserver() {
|
||||
checkProposedApiEnabled(extension);
|
||||
return extHostTesting.createTestObserver();
|
||||
@@ -1127,7 +1123,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
notebooks,
|
||||
scm,
|
||||
tasks,
|
||||
test,
|
||||
tests,
|
||||
window,
|
||||
workspace,
|
||||
// types
|
||||
@@ -1272,7 +1268,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
TestResultState: extHostTypes.TestResultState,
|
||||
TestRunRequest: extHostTypes.TestRunRequest,
|
||||
TestMessage: extHostTypes.TestMessage,
|
||||
TestRunProfileGroup: extHostTypes.TestRunProfileGroup,
|
||||
TestRunProfileKind: extHostTypes.TestRunProfileKind,
|
||||
TextSearchCompleteMessageType: TextSearchCompleteMessageType,
|
||||
TestMessageSeverity: extHostTypes.TestMessageSeverity,
|
||||
CoveredCount: extHostTypes.CoveredCount,
|
||||
|
||||
Reference in New Issue
Block a user