1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Refactor isEnabled assignment

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala 2020-11-24 12:36:48 +02:00
parent 0421e8cb9f
commit 5c8a176071

View File

@ -227,12 +227,7 @@ export class ExtensionDiscovery {
manifestJson = __non_webpack_require__(manifestPath);
const installedManifestPath = path.join(this.nodeModulesPath, manifestJson.name, "package.json");
this.packagesJson.dependencies[manifestJson.name] = path.dirname(manifestPath);
if (!isBundled) {
isEnabled = extensionsStore.isEnabled(installedManifestPath);
} else {
isEnabled = true;
}
const isEnabled = isBundled || extensionsStore.isEnabled(installedManifestPath);
return {
manifestPath: installedManifestPath,