1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix direct calling of runnables

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen 2022-05-20 12:38:19 +03:00
parent 51afa38d82
commit 9a733883f6
No known key found for this signature in database
GPG Key ID: 8C6CFB2FFFE8F68A

View File

@ -46,8 +46,7 @@ import { init } from "@sentry/electron/renderer";
import kubernetesClusterCategoryInjectable from "../common/catalog/categories/kubernetes-cluster.injectable"; import kubernetesClusterCategoryInjectable from "../common/catalog/categories/kubernetes-cluster.injectable";
import autoRegistrationInjectable from "../common/k8s-api/api-manager/auto-registration.injectable"; import autoRegistrationInjectable from "../common/k8s-api/api-manager/auto-registration.injectable";
import assert from "assert"; import assert from "assert";
import { beforeFrameStartsInjectionToken } from "./before-frame-starts/before-frame-starts-injection-token"; import startFrameInjectable from "./start-frame/start-frame.injectable";
import { runManyFor } from "../common/runnable/run-many-for";
configurePackages(); // global packages configurePackages(); // global packages
registerCustomThemes(); // monaco editor themes registerCustomThemes(); // monaco editor themes
@ -68,9 +67,9 @@ export async function bootstrap(di: DiContainer) {
initializeSentryReporting(init); initializeSentryReporting(init);
} }
const beforeFrameStarts = runManyFor(di)(beforeFrameStartsInjectionToken); const startFrame = di.inject(startFrameInjectable);
await beforeFrameStarts(); await startFrame();
// TODO: Consolidate import time side-effect to setup time // TODO: Consolidate import time side-effect to setup time
bindEvents(); bindEvents();