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:
parent
0421e8cb9f
commit
5c8a176071
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user