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:
Sebastian Malton authored and GitHub committed 2021-11-22 20:30:47 -05:00
1 parent 78a4e2a126
commit 8f84f394fe
1 file changed
+8 -1
+8 -1
View File
@@ -393,7 +393,14 @@ export class ExtensionDiscovery extends Singleton {
for (const extension of userExtensions) {
if ((await fse.pathExists(extension.manifestPath)) === false) {
await this.installPackage(extension.absolutePath);
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);
}
}
}