mirror of https://github.com/microsoft/vscode.git
check if thisArgs are defined (#255214)
This commit is contained in:
parent
762754e6b8
commit
141aa8582a
|
@ -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);
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue