From 5304d655861aaa01b6be26110969d59a66e5ff1d Mon Sep 17 00:00:00 2001 From: Charles Gagnon Date: Fri, 17 Apr 2020 14:51:44 -0700 Subject: [PATCH] Fix logging for angular bootstrapping errors (#10059) --- .../workbench/services/bootstrap/browser/bootstrapService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sql/workbench/services/bootstrap/browser/bootstrapService.ts b/src/sql/workbench/services/bootstrap/browser/bootstrapService.ts index b99e3cd46b..4b0b57038b 100644 --- a/src/sql/workbench/services/bootstrap/browser/bootstrapService.ts +++ b/src/sql/workbench/services/bootstrap/browser/bootstrapService.ts @@ -46,6 +46,7 @@ export function bootstrapAngular(accessor: ServicesAccessor, moduleType: IMod let selector = document.createElement(uniqueSelectorString); container.appendChild(selector); const instantiationService = accessor.get(IInstantiationService); + const logService = accessor.get(ILogService); if (!platform) { instantiationService.invokeFunction((accessor) => { @@ -67,7 +68,6 @@ export function bootstrapAngular(accessor: ServicesAccessor, moduleType: IMod callbackSetModule(moduleRef); } }).catch((e) => { - const logService = accessor.get(ILogService); logService.error(e); });