mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
- Move enabling extensions in tests to a proper location - Fix flushing promises Signed-off-by: Sebastian Malton <sebastian@malton.name>
23 lines
925 B
TypeScript
23 lines
925 B
TypeScript
/**
|
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
*/
|
|
import { getInjectable } from "@ogre-tools/injectable";
|
|
import fileSystemProvisionerStoreInjectable from "../../../extensions/extension-loader/file-system-provisioner-store/file-system-provisioner-store.injectable";
|
|
import { onLoadOfApplicationInjectionToken } from "../../../main/start-main-application/runnable-tokens/on-load-of-application-injection-token";
|
|
|
|
const initFileSystemProvisionerStoreInjectable = getInjectable({
|
|
id: "init-file-system-provisioner-store",
|
|
instantiate: (di) => ({
|
|
id: "init-file-system-provisioner-store",
|
|
run: () => {
|
|
const store = di.inject(fileSystemProvisionerStoreInjectable);
|
|
|
|
store.load();
|
|
},
|
|
}),
|
|
injectionToken: onLoadOfApplicationInjectionToken,
|
|
});
|
|
|
|
export default initFileSystemProvisionerStoreInjectable;
|