mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-18 23:59:43 +01:00
testing: exploratory UI for followup actions
This adds an API that extensions can use to contribute 'followup' actions around test messages. Here just a dummy hello world using copilot, but extensions could have any action here, such as actions to update snapshots if a test failed:  Implemented using a simple provider API.
This commit is contained in:
@@ -453,6 +453,10 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
checkProposedApiEnabled(extension, 'testObserver');
|
||||
return extHostTesting.runTests(provider);
|
||||
},
|
||||
registerTestFollowupProvider(provider) {
|
||||
checkProposedApiEnabled(extension, 'testObserver');
|
||||
return extHostTesting.registerTestFollowupProvider(provider);
|
||||
},
|
||||
get onDidChangeTestResults() {
|
||||
checkProposedApiEnabled(extension, 'testObserver');
|
||||
return _asExtensionEvent(extHostTesting.onResultsChanged);
|
||||
|
||||
Reference in New Issue
Block a user