mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-21 09:35:38 -05:00
Fix logging for angular bootstrapping errors (#10059)
This commit is contained in:
@@ -46,6 +46,7 @@ export function bootstrapAngular<T>(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<T>(accessor: ServicesAccessor, moduleType: IMod
|
||||
callbackSetModule(moduleRef);
|
||||
}
|
||||
}).catch((e) => {
|
||||
const logService = accessor.get(ILogService);
|
||||
logService.error(e);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user