mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Update extension after ipc event
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
1 parent
56d438878c
commit
578a6cec21
5 files changed
+21
-16
No files matched your search
@@ -29,7 +29,7 @@ export class BundledVersionChecker implements LensExtensionLatestVersionChecker
|
||||
const json = await this.getJson(`${extensionUpdateUrl}/versions.json`);
|
||||
|
||||
if (!json || json.error || !json[manifest.name]) {
|
||||
logger.info(`[BUNDLED-EXTENSIONS-UPDATER]: No version found for ${manifest.name}.`);
|
||||
logger.info(`[EXTENSION-VERSION-CHECKER]: No version found for ${manifest.name}.`);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import { EventEmitter } from "events";
|
||||
import { isEqual } from "lodash";
|
||||
import { action, computed, makeObservable, observable, observe, reaction, when } from "mobx";
|
||||
import path from "path";
|
||||
import { broadcastMessage, ipcMainOn, ipcRendererOn, requestMain, ipcMainHandle } from "../../common/ipc";
|
||||
import { broadcastMessage, ipcMainOn, ipcRendererOn, requestMain, ipcMainHandle, UpdateBundledExtension } from "../../common/ipc";
|
||||
import { Disposer, toJS } from "../../common/utils";
|
||||
import logger from "../../main/logger";
|
||||
import type { KubernetesCluster } from "../common-api/catalog";
|
||||
@@ -288,7 +288,9 @@ export class ExtensionLoader {
|
||||
}
|
||||
});
|
||||
|
||||
this.checkForExtensionUpdate(extension);
|
||||
this.checkForExtensionUpdate(extension).then(() => {
|
||||
broadcastMessage(UpdateBundledExtension, extension.id)
|
||||
});
|
||||
|
||||
return removeItems;
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user