mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix discovering extensions with with scopes (#6221)
This commit is contained in:
parent
2d6239123b
commit
23cb231c8f
@ -363,7 +363,8 @@ export class ExtensionDiscovery {
|
||||
const id = this.getInstalledManifestPath(manifest.name);
|
||||
const isEnabled = this.dependencies.extensionsStore.isEnabled({ id, isBundled });
|
||||
const extensionDir = path.dirname(manifestPath);
|
||||
const npmPackage = path.join(extensionDir, `${manifest.name}-${manifest.version}.tgz`);
|
||||
const packedName = manifest.name.replaceAll("@", "").replaceAll("/", "-");
|
||||
const npmPackage = path.join(extensionDir, `${packedName}-${manifest.version}.tgz`);
|
||||
const absolutePath = (isProduction && await this.dependencies.pathExists(npmPackage)) ? npmPackage : extensionDir;
|
||||
const isCompatible = isBundled || this.dependencies.isCompatibleExtension(manifest);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user