Use extension version as projectVersion for exported ExtensionStore (#6161)

This commit is contained in:
Sebastian Malton authored and GitHub committed 2022-09-02 09:43:06 -04:00
1 parent fc3512daf2
commit 6ef284560a
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -59,10 +59,10 @@ export abstract class BaseStore<T extends object> extends Singleton {
const getConfigurationFileModel = di.inject(getConfigurationFileModelInjectable);
this.storeConfig = getConfigurationFileModel({
...this.params,
projectName: "lens",
projectVersion: di.inject(appVersionInjectable),
cwd: this.cwd(),
...this.params,
});
const res: any = this.fromStore(this.storeConfig.store);
+2
View File
@@ -15,6 +15,8 @@ export abstract class ExtensionStore<T extends object> extends BaseStore<T> {
loadExtension(extension: LensExtension) {
this.extension = extension;
this.params.projectVersion ??= this.extension.version;
return super.load();
}