From 9f1393131819d40b14a2eda46d3221670aeb33e9 Mon Sep 17 00:00:00 2001 From: Jim Ehrismann <40840436+jim-docker@users.noreply.github.com> Date: Tue, 30 May 2023 10:24:27 -0400 Subject: [PATCH] Temporary fix for extensions always disabled on startup (#7801) Signed-off-by: Jim Ehrismann --- .../features/extensions/enabled/common/storage.injectable.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/core/src/features/extensions/enabled/common/storage.injectable.ts b/packages/core/src/features/extensions/enabled/common/storage.injectable.ts index 47a9930ccfe3..d2bd14ee15c0 100644 --- a/packages/core/src/features/extensions/enabled/common/storage.injectable.ts +++ b/packages/core/src/features/extensions/enabled/common/storage.injectable.ts @@ -7,7 +7,6 @@ import { getInjectable } from "@ogre-tools/injectable"; import { action, toJS } from "mobx"; import createPersistentStorageInjectable from "../../../../common/persistent-storage/create.injectable"; import persistentStorageMigrationsInjectable from "../../../../common/persistent-storage/migrations.injectable"; -import storageMigrationVersionInjectable from "../../../../common/persistent-storage/storage-migration-version.injectable"; import { enabledExtensionsMigrationDeclarationInjectionToken } from "./migrations"; import type { LensExtensionState } from "./state.injectable"; import enabledExtensionsStateInjectable from "./state.injectable"; @@ -30,7 +29,7 @@ const enabledExtensionsPersistentStorageInjectable = getInjectable({ toJSON: () => ({ extensions: [...toJS(state)], }), - projectVersion: di.inject(storageMigrationVersionInjectable, enabledExtensionsMigrationDeclarationInjectionToken), + projectVersion: "6.5.0", // temporary fix for #7784, otherwise calculated wrong on the renderer process migrations: di.inject(persistentStorageMigrationsInjectable, enabledExtensionsMigrationDeclarationInjectionToken), }); },