diff --git a/src/vs/workbench/api/node/extHostExtensionService.ts b/src/vs/workbench/api/node/extHostExtensionService.ts index 3b8e97d6165..814e52aae4b 100644 --- a/src/vs/workbench/api/node/extHostExtensionService.ts +++ b/src/vs/workbench/api/node/extHostExtensionService.ts @@ -303,6 +303,14 @@ export class ExtHostExtensionService extends AbstractExtensionService { return ExtHostExtensionService._callActivate(values[0], values[1]); + }, (errors: any[]) => { + // Avoid failing with an array of errors, fail with a single error + if (errors[0]) { + return TPromise.wrapError(errors[0]); + } + if (errors[1]) { + return TPromise.wrapError(errors[1]); + } }); }); }