mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Use extension version as projectVersion for exported ExtensionStore (#6161)
This commit is contained in:
parent
fc3512daf2
commit
6ef284560a
@ -59,10 +59,10 @@ export abstract class BaseStore<T extends object> extends Singleton {
|
|||||||
const getConfigurationFileModel = di.inject(getConfigurationFileModelInjectable);
|
const getConfigurationFileModel = di.inject(getConfigurationFileModelInjectable);
|
||||||
|
|
||||||
this.storeConfig = getConfigurationFileModel({
|
this.storeConfig = getConfigurationFileModel({
|
||||||
...this.params,
|
|
||||||
projectName: "lens",
|
projectName: "lens",
|
||||||
projectVersion: di.inject(appVersionInjectable),
|
projectVersion: di.inject(appVersionInjectable),
|
||||||
cwd: this.cwd(),
|
cwd: this.cwd(),
|
||||||
|
...this.params,
|
||||||
});
|
});
|
||||||
|
|
||||||
const res: any = this.fromStore(this.storeConfig.store);
|
const res: any = this.fromStore(this.storeConfig.store);
|
||||||
|
|||||||
@ -15,6 +15,8 @@ export abstract class ExtensionStore<T extends object> extends BaseStore<T> {
|
|||||||
loadExtension(extension: LensExtension) {
|
loadExtension(extension: LensExtension) {
|
||||||
this.extension = extension;
|
this.extension = extension;
|
||||||
|
|
||||||
|
this.params.projectVersion ??= this.extension.version;
|
||||||
|
|
||||||
return super.load();
|
return super.load();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user