add task status API (#243092)

This commit is contained in:
Megan Rogge
2025-03-12 10:24:22 -04:00
committed by GitHub
parent 42a55e8a99
commit 870d14c7b3
13 changed files with 288 additions and 20 deletions

View File

@@ -1357,6 +1357,10 @@ 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);
}
};
@@ -1654,6 +1658,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
SymbolKind: extHostTypes.SymbolKind,
SymbolTag: extHostTypes.SymbolTag,
Task: extHostTypes.Task,
TaskEventKind: extHostTypes.TaskEventKind,
TaskGroup: extHostTypes.TaskGroup,
TaskPanelKind: extHostTypes.TaskPanelKind,
TaskRevealKind: extHostTypes.TaskRevealKind,