add terminal to taskExecution (#254477)

fix #234440
This commit is contained in:
Megan Rogge
2025-07-08 12:52:36 -04:00
committed by GitHub
parent 45bcb2d5fb
commit 9362739ef4
4 changed files with 37 additions and 1 deletions

View File

@@ -1358,6 +1358,9 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
return extHostTask.taskExecutions;
},
onDidStartTask: (listeners, thisArgs?, disposables?) => {
if (!isProposedApiEnabled(extension, 'taskExecutionTerminal')) {
thisArgs.terminal = undefined;
}
return _asExtensionEvent(extHostTask.onDidStartTask)(listeners, thisArgs, disposables);
},
onDidEndTask: (listeners, thisArgs?, disposables?) => {