mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -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);
|
let selector = document.createElement(uniqueSelectorString);
|
||||||
container.appendChild(selector);
|
container.appendChild(selector);
|
||||||
const instantiationService = accessor.get(IInstantiationService);
|
const instantiationService = accessor.get(IInstantiationService);
|
||||||
|
const logService = accessor.get(ILogService);
|
||||||
|
|
||||||
if (!platform) {
|
if (!platform) {
|
||||||
instantiationService.invokeFunction((accessor) => {
|
instantiationService.invokeFunction((accessor) => {
|
||||||
@@ -67,7 +68,6 @@ export function bootstrapAngular<T>(accessor: ServicesAccessor, moduleType: IMod
|
|||||||
callbackSetModule(moduleRef);
|
callbackSetModule(moduleRef);
|
||||||
}
|
}
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
||||||
const logService = accessor.get(ILogService);
|
|
||||||
logService.error(e);
|
logService.error(e);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user