Skip to content

Commit 141aa85

Browse files
authored
check if thisArgs are defined (microsoft#255214)
1 parent 762754e commit 141aa85

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/vs/workbench/api/common/extHost.api.impl.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1359,7 +1359,9 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
13591359
},
13601360
onDidStartTask: (listeners, thisArgs?, disposables?) => {
13611361
if (!isProposedApiEnabled(extension, 'taskExecutionTerminal')) {
1362-
thisArgs.terminal = undefined;
1362+
if (thisArgs) {
1363+
thisArgs.terminal = undefined;
1364+
}
13631365
}
13641366
return _asExtensionEvent(extHostTask.onDidStartTask)(listeners, thisArgs, disposables);
13651367
},

0 commit comments

Comments
 (0)