Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
promises.push((async () => {
const debug = await this.widgetManager.getWidget(DebugWidget.ID);
if (debug instanceof DebugWidget) {
const viewContainer = debug['sessionWidget']['viewContainer'];
await this.prepareViewContainer('debug', viewContainer);
}
})().catch(console.error));
await Promise.all(promises);