mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-18 15:55:59 +01:00
make task problem matcher events API simpler (#243756)
This commit is contained in:
@@ -1359,9 +1359,13 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
onDidEndTaskProcess: (listeners, thisArgs?, disposables?) => {
|
||||
return _asExtensionEvent(extHostTask.onDidEndTaskProcess)(listeners, thisArgs, disposables);
|
||||
},
|
||||
onDidChangeTaskStatus: (listeners) => {
|
||||
checkProposedApiEnabled(extension, 'taskStatus');
|
||||
return _asExtensionEvent(extHostTask.onDidChangeTaskTerminalStatus)(listeners);
|
||||
onDidStartTaskProblemMatchers: (listeners, thisArgs?, disposables?) => {
|
||||
checkProposedApiEnabled(extension, 'taskProblemMatcherStatus');
|
||||
return _asExtensionEvent(extHostTask.onDidStartTaskProblemMatchers)(listeners, thisArgs, disposables);
|
||||
},
|
||||
onDidEndTaskProblemMatchers: (listeners, thisArgs?, disposables?) => {
|
||||
checkProposedApiEnabled(extension, 'taskProblemMatcherStatus');
|
||||
return _asExtensionEvent(extHostTask.onDidEndTaskProblemMatchers)(listeners, thisArgs, disposables);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user