mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix all-or-nothing when initially loading extensions (#4384)
* Fix all-or-nothing when initially loading extensions Signed-off-by: Sebastian Malton <sebastian@malton.name> * Log error instead of displaying error box Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
78a4e2a126
commit
8f84f394fe
@ -393,7 +393,14 @@ export class ExtensionDiscovery extends Singleton {
|
||||
|
||||
for (const extension of userExtensions) {
|
||||
if ((await fse.pathExists(extension.manifestPath)) === false) {
|
||||
try {
|
||||
await this.installPackage(extension.absolutePath);
|
||||
} catch (error) {
|
||||
const message = error.message || error || "unknown error";
|
||||
const { name, version } = extension.manifest;
|
||||
|
||||
logger.error(`${logModule}: failed to install user extension ${name}@${version}`, message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user