mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-18 23:59:43 +01:00
check if thisArgs are defined (#255214)
This commit is contained in:
@@ -1359,7 +1359,9 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
},
|
||||
onDidStartTask: (listeners, thisArgs?, disposables?) => {
|
||||
if (!isProposedApiEnabled(extension, 'taskExecutionTerminal')) {
|
||||
thisArgs.terminal = undefined;
|
||||
if (thisArgs) {
|
||||
thisArgs.terminal = undefined;
|
||||
}
|
||||
}
|
||||
return _asExtensionEvent(extHostTask.onDidStartTask)(listeners, thisArgs, disposables);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user